Added: #1440 Poly face info to string

--HG--
branch : build_pipeline_v3
hg/feature/build_pipeline_v3
kaetemi 12 years ago
parent 3a6b7fc130
commit 9c7a3921ea

@ -202,7 +202,25 @@ void CGeomPolyFaceInfo::serial(NLMISC::IStream &stream)
std::string CGeomPolyFaceInfo::toString() const std::string CGeomPolyFaceInfo::toString() const
{ {
std::stringstream ss; std::stringstream ss;
//ss << "0x" << NLMISC::toString("%x", i1) << ", " << a << " " << b; ss << "( ";
for (std::vector<uint32>::size_type i = 0; i < Vertices.size(); ++i)
{
ss << Vertices[i] << " ";
}
ss << ")";
if (I1) ss << ", I1: " << "0x" << NLMISC::toString("%x", I1);
if (Material) ss << ", M: " << Material;
if (SmoothingGroups) ss << ", S: " << SmoothingGroups;
if (Triangulation.size())
{
ss << ", ( ";
for (std::vector<std::pair<uint32, uint32> >::size_type i = 0; i < Triangulation.size(); ++i)
{
ss << Triangulation[i].first << ":" << Triangulation[i].second << " ";
}
ss << ")";
}
ss << " ";
return ss.str(); return ss.str();
} }

Loading…
Cancel
Save