0031918: Application Framework - New binary format for fast reading part of OCAF...
[occt.git] / src / BinMNaming / BinMNaming_NamedShapeDriver.lxx
index c313d6f..35d4dfd 100644 (file)
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
-
 //=======================================================================
-//function : GetShapesLocations
+//function : SetWithTriangles
 //purpose  : 
 //=======================================================================
-inline BinTools_LocationSet& BinMNaming_NamedShapeDriver::GetShapesLocations()
+
+inline void BinMNaming_NamedShapeDriver::SetWithTriangles(const Standard_Boolean isWithTriangles) 
 {
-  return myShapeSet.ChangeLocations();
+  myWithTriangles = isWithTriangles;
+  if (myShapeSet)
+    myShapeSet->SetWithTriangles (isWithTriangles);
 }
 
+//=======================================================================
+//function : SetWithNormals
+//purpose  : 
+//=======================================================================
+
+inline void BinMNaming_NamedShapeDriver::SetWithNormals(const Standard_Boolean isWithNormals) 
+{
+  myWithNormals = isWithNormals;
+  if (myShapeSet)
+    myShapeSet->SetWithNormals (isWithNormals);
+
+}