0032328: Missing include of TopoDS_Edge.hxx in ShapeUpgrade_UnifySameDomain.hxx
[occt.git] / src / ShapeUpgrade / ShapeUpgrade_UnifySameDomain.hxx
index b1558d1..cb2f6b7 100644 (file)
@@ -65,13 +65,6 @@ DEFINE_STANDARD_HANDLE(ShapeUpgrade_UnifySameDomain, Standard_Transient)
 //! The algorithm provides a place holder for the history and collects the
 //! history by default.
 //! To avoid collecting of the history the place holder should be set to null handle.
-
-struct SubSequenceOfEdges
-{
-  TopTools_SequenceOfShape SeqsEdges;
-  TopoDS_Edge UnionEdges;
-};
-
 class ShapeUpgrade_UnifySameDomain : public Standard_Transient
 {
 
@@ -161,6 +154,10 @@ public:
 
   DEFINE_STANDARD_RTTIEXT(ShapeUpgrade_UnifySameDomain,Standard_Transient)
 
+protected:
+
+  struct SubSequenceOfEdges;
+
 protected:
 
   //! This method makes if possible a common face from each
@@ -198,6 +195,16 @@ protected:
   //! Fills the history of the modifications during the operation.
   Standard_EXPORT void FillHistory();
 
+private:
+
+  //! Generates sub-sequences of edges from sequence of edges.
+  //! Edges from each subsequences can be merged into the one edge.
+  static void generateSubSeq (const TopTools_SequenceOfShape& anInpEdgeSeq,
+                              NCollection_Sequence<SubSequenceOfEdges>& SeqOfSubSeqOfEdges,
+                              Standard_Boolean IsClosed, double theAngTol, double theLinTol,
+                              const TopTools_MapOfShape& AvoidEdgeVrt,
+                              const TopTools_IndexedDataMapOfShapeListOfShape& theVFmap);
+
 private:
 
   TopoDS_Shape myInitShape;