From 9c7a3921eabfac5b2f2d60f15a3ac2fc2bf6dc38 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Sun, 26 Aug 2012 17:08:52 +0200 Subject: [PATCH] Added: #1440 Poly face info to string --HG-- branch : build_pipeline_v3 --- .../max/builtin/storage/geom_buffers.cpp | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/code/nel/tools/pipeline/max/builtin/storage/geom_buffers.cpp b/code/nel/tools/pipeline/max/builtin/storage/geom_buffers.cpp index 6294b9c41..da000aaa4 100644 --- a/code/nel/tools/pipeline/max/builtin/storage/geom_buffers.cpp +++ b/code/nel/tools/pipeline/max/builtin/storage/geom_buffers.cpp @@ -202,7 +202,25 @@ void CGeomPolyFaceInfo::serial(NLMISC::IStream &stream) std::string CGeomPolyFaceInfo::toString() const { std::stringstream ss; - //ss << "0x" << NLMISC::toString("%x", i1) << ", " << a << " " << b; + ss << "( "; + for (std::vector::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 >::size_type i = 0; i < Triangulation.size(); ++i) + { + ss << Triangulation[i].first << ":" << Triangulation[i].second << " "; + } + ss << ")"; + } + ss << " "; return ss.str(); }