]> OCCT Git - occt.git/commitdiff
0033765: Data Exchange, IGES Export - Missing Model Curves in transfer cache IR-2024-09-13
authordpasukhi <dpasukhi@opencascade.com>
Tue, 10 Sep 2024 18:15:18 +0000 (18:15 +0000)
committerdpasukhi <dpasukhi@opencascade.com>
Sat, 14 Sep 2024 20:26:41 +0000 (20:26 +0000)
Curve list should be not unique, list is recommended.
One curve can be used by multiple edges.

src/BRepToIGESBRep/BRepToIGESBRep_Entity.cxx
src/BRepToIGESBRep/BRepToIGESBRep_Entity.hxx

index 6d5ab9ad31708387cc2ddf7cc224dfbd3e140d0d..aaf3a0f0348021db430c31b855ce16ed81cd15ec 100644 (file)
@@ -234,7 +234,7 @@ Standard_Integer BRepToIGESBRep_Entity::AddEdge(const TopoDS_Edge& myedge,
   Standard_Integer index = myEdges.FindIndex(E);
   if (index == 0) {
     index = myEdges.Add(E);
-    myCurves.Add(C);
+    myCurves.Append(C);
   }
   
   return index;
index 60332515c3b30c589fc7c4f1521e40489704573d..795884604e5ee14fbc910abc7bcf7dc98e30c8a6 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <TopTools_IndexedMapOfShape.hxx>
 #include <TColStd_IndexedMapOfTransient.hxx>
+#include <TColStd_SequenceOfTransient.hxx>
 #include <BRepToIGES_BREntity.hxx>
 #include <Standard_Integer.hxx>
 #include <Message_ProgressRange.hxx>
@@ -136,7 +137,7 @@ private:
 
   TopTools_IndexedMapOfShape myVertices;
   TopTools_IndexedMapOfShape myEdges;
-  TColStd_IndexedMapOfTransient myCurves;
+  TColStd_SequenceOfTransient myCurves;
   Handle(IGESSolid_EdgeList) myEdgeList;
   Handle(IGESSolid_VertexList) myVertexList;