X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FPoly%2FPoly_Triangulation.cxx;h=b367b5a37d22ba43a520b223db6b76de41a93bf0;hb=bc73b00672a218a1301520a3562ece96f72a679c;hpb=00ea7f2676893c9dd9b31cf1f0a8bcad61416a6a diff --git a/src/Poly/Poly_Triangulation.cxx b/src/Poly/Poly_Triangulation.cxx index 3a361d076a..b367b5a37d 100644 --- a/src/Poly/Poly_Triangulation.cxx +++ b/src/Poly/Poly_Triangulation.cxx @@ -19,6 +19,7 @@ #include #include #include +#include #include #include @@ -309,3 +310,21 @@ gp_Dir Poly_Triangulation::Normal (const Standard_Integer theIndex) const return N; } + +// ======================================================================= +// function : DumpJson +// purpose : +// ======================================================================= +void Poly_Triangulation::DumpJson (Standard_OStream& theOStream, Standard_Integer) const +{ + OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream) + + OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myDeflection) + + OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myNodes.Size()) + if (!myUVNodes.IsNull()) + OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myUVNodes->Size()) + if (!myNormals.IsNull()) + OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myNormals->Size()) + OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myTriangles.Size()) +}