From: jgv Date: Tue, 1 Mar 2016 14:03:54 +0000 (+0300) Subject: 0027207: New universal method for extracting of results of work of HLRBRep_Algo algorithm X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=55b3d05b640eb662e9591d65fa4ff397d4ab4fff;p=occt-copy.git 0027207: New universal method for extracting of results of work of HLRBRep_Algo algorithm --- diff --git a/src/HLRBRep/HLRBRep.cdl b/src/HLRBRep/HLRBRep.cdl index a4aac4ab46..a0e36a0183 100644 --- a/src/HLRBRep/HLRBRep.cdl +++ b/src/HLRBRep/HLRBRep.cdl @@ -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; diff --git a/src/HLRBRep/HLRBRep_HLRToShape.cdl b/src/HLRBRep/HLRBRep_HLRToShape.cdl index e26d891011..6910bdd4c6 100644 --- a/src/HLRBRep/HLRBRep_HLRToShape.cdl +++ b/src/HLRBRep/HLRBRep_HLRToShape.cdl @@ -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; diff --git a/src/HLRBRep/HLRBRep_HLRToShape.lxx b/src/HLRBRep/HLRBRep_HLRToShape.lxx index d2ca47fcd4..286372a52a 100644 --- a/src/HLRBRep/HLRBRep_HLRToShape.lxx +++ b/src/HLRBRep/HLRBRep_HLRToShape.lxx @@ -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); }