]> OCCT Git - occt-copy.git/commitdiff
0025255: API to control storage with triangulation in BinTools
authorpdn <pdn@opencascade.com>
Mon, 22 Sep 2014 13:57:30 +0000 (17:57 +0400)
committerbugmaster <bugmaster@opencascade.com>
Thu, 25 Sep 2014 11:58:27 +0000 (15:58 +0400)
Method to govern writing shape with or without triangles added

src/BinMNaming/BinMNaming_NamedShapeDriver.cdl
src/BinMNaming/BinMNaming_NamedShapeDriver.lxx
src/BinTools/BinTools_ShapeSet.cdl
src/BinTools/BinTools_ShapeSet.cxx

index 87da7b09c66eae6eefdbc41ca192e70f5103cb54..601c8ec417ba8e95d2aac0f23d2f7e894dbe9d1f 100644 (file)
@@ -50,6 +50,10 @@ is
     Clear (me:mutable);
       ---Purpose: Clear myShapeSet 
        
+    SetWithTriangles(me: mutable; isWithTriangles : Boolean from Standard);  
+    ---C++: inline 
+    ---Purpose: set whether to store triangulation  
+       
     SetFormatNb(me: mutable; theFormat : Integer from Standard);  
     ---C++: inline 
     ---Purpose: set the format of topology  
index 38fc25a13a34156153d33f681c43491cb7dadf95..da9a59daeb96a7536dc96135c30a247da405f2b0 100644 (file)
@@ -33,6 +33,16 @@ inline void BinMNaming_NamedShapeDriver::SetFormatNb(const Standard_Integer theF
   myFormatNb = theFormatNb;
 }
 
+//=======================================================================
+//function : SetWithTriangles
+//purpose  : 
+//=======================================================================
+
+inline void BinMNaming_NamedShapeDriver::SetWithTriangles(const Standard_Boolean isWithTriangles) 
+{
+  myShapeSet.SetWithTriangles(isWithTriangles);
+}
+
 //=======================================================================
 //function : GetShapesLocations
 //purpose  : 
index 653ee96c6acccc1c3689ed833c75188df3cf23d3..d6060f8778ece09c9c4bb7f8c588c07ce89f7f64 100644 (file)
@@ -41,6 +41,9 @@ is
     Delete(me:out) is virtual;
     ---C++: alias "Standard_EXPORT virtual ~BinTools_ShapeSet(){Delete() ; }"
 
+    SetWithTriangles(me : out; isWithTriangles : Boolean) is static;
+        ---Purpose: Define if shape will be stored with triangles 
+
     SetFormatNb(me : out; theFormatNb : Integer) is static; 
     
     FormatNb(me) returns Integer is static;
index 7c62d45aeff34245d9fa9fbbd95a156eafd634e5..1aa3a5b1db8ac75b06da236c0074723f708f07b4 100644 (file)
@@ -80,6 +80,15 @@ BinTools_ShapeSet::BinTools_ShapeSet(const Standard_Boolean isWithTriangles)
 void BinTools_ShapeSet::Delete()
 {}
 
+//=======================================================================
+//function : SetWithTriangles
+//purpose  : 
+//=======================================================================
+void BinTools_ShapeSet::SetWithTriangles(const Standard_Boolean isWithTriangles)
+{
+  myWithTriangles = isWithTriangles;
+}
+
 //=======================================================================
 //function : SetFormatNb
 //purpose  :