]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/GeomAPI/GeomAPI_Shape.cpp
Salome HOME
Fix for the #21 note from issue 3134:
[modules/shaper.git] / src / GeomAPI / GeomAPI_Shape.cpp
index 6d5649a75cf3b9bfc367e3e982634ee3ad82b8cd..9482a1bcb6666e7fa3343bfc83434feadfdc7fbc 100644 (file)
@@ -645,6 +645,11 @@ std::string GeomAPI_Shape::getShapeStream(const bool theWithTriangulation) const
   if (!theWithTriangulation) { // make a copy of shape without triangulation
     BRepBuilderAPI_Copy aCopy(aShape, Standard_False, Standard_False);
     const TopoDS_Shape& aCopyShape = aCopy.Shape();
+    // make all faces unchecked to make the stream of shapes the same
+    TopExp_Explorer aFaceExp(aCopyShape, TopAbs_FACE);
+    for(; aFaceExp.More(); aFaceExp.Next()) {
+      aFaceExp.Current().TShape()->Checked(Standard_False);
+    }
     BRepTools::Write(aCopyShape, aStream);
   } else {
     BRepTools::Write(aShape, aStream);