]> OCCT Git - occt-copy.git/commitdiff
0027207: New universal method for extracting of results of work of HLRBRep_Algo algorithm
authorjgv <jgv@opencascade.com>
Tue, 1 Mar 2016 14:03:54 +0000 (17:03 +0300)
committerbugmaster <bugmaster@opencascade.com>
Tue, 1 Mar 2016 14:26:14 +0000 (17:26 +0300)
src/HLRBRep/HLRBRep.cdl
src/HLRBRep/HLRBRep_HLRToShape.cdl
src/HLRBRep/HLRBRep_HLRToShape.lxx

index a4aac4ab463fa6d5df1d63c36c7920d1afea046f..a0e36a0183a1ae4210f647150ddbe834efcc39c6 100644 (file)
@@ -48,6 +48,15 @@ uses
     HLRTopoBRep
 
 is
+
+    enumeration TypeOfResultingEdge is 
+                Undefined,
+               IsoLine, -- isoparametric line
+               OutLine, -- outline ("silhouette")
+               Rg1Line, -- smooth edge of G1-continuity between two surfaces
+               RgNLine, -- sewn edge of CN-continuity on one surface
+               Sharp;   -- sharp edge (of C0-continuity)
+
     class CurveTool;
     class BCurveTool;
     class Curve;
index e26d8910115c252372ceaa84743da7d54138ce49..6910bdd4c64f22e8f433c578a887e93de0edd19a 100644 (file)
@@ -52,7 +52,8 @@ uses
     Curve    from HLRBRep,
     Algo     from HLRBRep,
     Data     from HLRBRep,
-    EdgeData from HLRBRep
+    EdgeData from HLRBRep,
+    TypeOfResultingEdge from HLRBRep
 
 is
     Create(A : Algo from HLRBRep)
@@ -60,6 +61,24 @@ is
        ---Purpose: Constructs a framework for filtering the
        --- results of the HLRBRep_Algo algorithm, A.
        -- Use the extraction filters to obtain the results you want for A.
+
+    CompoundOfEdges(me : in out;
+                   type    : TypeOfResultingEdge from HLRBRep;
+                   visible : Boolean             from Standard;
+                   In3d    : Boolean             from Standard)
+    returns Shape from TopoDS
+       ---C++: inline
+    is static;
+
+    CompoundOfEdges(me : in out;
+                   S  : Shape from TopoDS;
+                   type    : TypeOfResultingEdge from HLRBRep;
+                   visible : Boolean             from Standard;
+                   In3d    : Boolean             from Standard)
+    returns Shape from TopoDS
+       ---C++: inline
+    is static;
+
     VCompound(me : in out) returns Shape from TopoDS
        ---C++: inline
     is static;
index d2ca47fcd495bd54add18835665414bb30c8e686..286372a52a929ed3dd9b7ac5d4ae760072e4fe17 100644 (file)
@@ -193,3 +193,26 @@ inline TopoDS_Shape HLRBRep_HLRToShape::IsoLineHCompound()
 inline TopoDS_Shape
 HLRBRep_HLRToShape::IsoLineHCompound(const TopoDS_Shape& S)
 { return InternalCompound(1,Standard_False,S); }
+
+//=======================================================================
+//function : CompoundOfEdges
+//purpose  : 
+//=======================================================================
+
+inline TopoDS_Shape
+HLRBRep_HLRToShape::CompoundOfEdges(const HLRBRep_TypeOfResultingEdge type,
+                                    const Standard_Boolean            visible,
+                                    const Standard_Boolean            In3d)
+{ return InternalCompound(type,visible,TopoDS_Shape(),In3d); }
+
+//=======================================================================
+//function : CompoundOfEdges
+//purpose  : 
+//=======================================================================
+
+inline TopoDS_Shape
+HLRBRep_HLRToShape::CompoundOfEdges(const TopoDS_Shape& S,
+                                    const HLRBRep_TypeOfResultingEdge type,
+                                    const Standard_Boolean            visible,
+                                    const Standard_Boolean            In3d)
+{ return InternalCompound(type,visible,S,In3d); }