0027207: New universal method for extracting of results of work of HLRBRep_Algo algorithm
authorjgv <jgv@opencascade.com>
Fri, 26 Feb 2016 12:20:32 +0000 (15:20 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 3 Mar 2016 11:17:11 +0000 (14:17 +0300)
New method HLRBRep_HLRToShape::CompoundOfEdges with options:
- type of resulting edge
- visibility
- 3d/2d
has been added.

Minor correction of comments

src/HLRBRep/FILES
src/HLRBRep/HLRBRep_HLRToShape.hxx
src/HLRBRep/HLRBRep_HLRToShape.lxx
src/HLRBRep/HLRBRep_TypeOfResultingEdge.hxx [new file with mode: 0644]

index 422c9c1..1e18766 100644 (file)
@@ -137,3 +137,4 @@ HLRBRep_TheQuadCurvFuncOfTheQuadCurvExactInterCSurf.hxx
 HLRBRep_TheQuadCurvFuncOfTheQuadCurvExactInterCSurf_0.cxx
 HLRBRep_VertexList.cxx
 HLRBRep_VertexList.hxx
+HLRBRep_TypeOfResultingEdge.hxx
index d4c5159..d88d2ab 100644 (file)
@@ -24,6 +24,7 @@
 #include <TopoDS_Shape.hxx>
 #include <Standard_Integer.hxx>
 #include <Standard_Boolean.hxx>
+#include <HLRBRep_TypeOfResultingEdge.hxx>
 class HLRBRep_Algo;
 class TopoDS_Shape;
 class HLRBRep_Data;
@@ -111,7 +112,24 @@ public:
     TopoDS_Shape IsoLineHCompound();
   
     TopoDS_Shape IsoLineHCompound (const TopoDS_Shape& S);
-
+  
+    //! Returns compound of resulting edges
+    //! of required type and visibility,
+    //! taking into account the kind of space
+    //! (2d or 3d)
+    TopoDS_Shape CompoundOfEdges(const HLRBRep_TypeOfResultingEdge type,
+                                 const Standard_Boolean            visible,
+                                 const Standard_Boolean            In3d);
+
+    //! For specified shape 
+    //! returns compound of resulting edges
+    //! of required type and visibility,
+    //! taking into account the kind of space
+    //! (2d or 3d)
+    TopoDS_Shape CompoundOfEdges(const TopoDS_Shape& S,
+                                 const HLRBRep_TypeOfResultingEdge type,
+                                 const Standard_Boolean            visible,
+                                 const Standard_Boolean            In3d);
 
 
 
index d2ca47f..286372a 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); }
diff --git a/src/HLRBRep/HLRBRep_TypeOfResultingEdge.hxx b/src/HLRBRep/HLRBRep_TypeOfResultingEdge.hxx
new file mode 100644 (file)
index 0000000..fd04ff8
--- /dev/null
@@ -0,0 +1,42 @@
+// Created on: 2016-02-26
+// Created by: Julia GERASIMOVA
+// Copyright (c) 1991-1999 Matra Datavision
+// Copyright (c) 1999-2016 OPEN CASCADE SAS
+//
+// This file is part of Open CASCADE Technology software library.
+//
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
+//
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
+
+#ifndef _HLRBRep_TypeOfResultingEdge_HeaderFile
+#define _HLRBRep_TypeOfResultingEdge_HeaderFile
+
+
+//! Identifies the type of resulting edge of HLRBRep_Algo
+enum HLRBRep_TypeOfResultingEdge
+{
+HLRBRep_Undefined,
+
+//! isoparametric line
+HLRBRep_IsoLine,
+
+//! outline ("silhouette")
+HLRBRep_OutLine,
+
+//! smooth edge of G1-continuity between two surfaces
+HLRBRep_Rg1Line,
+
+//! sewn edge of CN-continuity on one surface
+HLRBRep_RgNLine,
+
+//! sharp edge (of C0-continuity)
+HLRBRep_Sharp
+};
+
+#endif // _HLRBRep_TypeOfResultingEdge_HeaderFile