1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00

0033765: Data Exchange, IGES Export - Missing Model Curves in transfer cache

Curve list should be not unique, list is recommended.
One curve can be used by multiple edges.
This commit is contained in:
dpasukhi 2024-09-10 18:15:18 +00:00
parent d0e33902bc
commit 72c6d55bf2
2 changed files with 3 additions and 2 deletions

View File

@ -234,7 +234,7 @@ Standard_Integer BRepToIGESBRep_Entity::AddEdge(const TopoDS_Edge& myedge,
Standard_Integer index = myEdges.FindIndex(E); Standard_Integer index = myEdges.FindIndex(E);
if (index == 0) { if (index == 0) {
index = myEdges.Add(E); index = myEdges.Add(E);
myCurves.Add(C); myCurves.Append(C);
} }
return index; return index;

View File

@ -23,6 +23,7 @@
#include <TopTools_IndexedMapOfShape.hxx> #include <TopTools_IndexedMapOfShape.hxx>
#include <TColStd_IndexedMapOfTransient.hxx> #include <TColStd_IndexedMapOfTransient.hxx>
#include <TColStd_SequenceOfTransient.hxx>
#include <BRepToIGES_BREntity.hxx> #include <BRepToIGES_BREntity.hxx>
#include <Standard_Integer.hxx> #include <Standard_Integer.hxx>
#include <Message_ProgressRange.hxx> #include <Message_ProgressRange.hxx>
@ -136,7 +137,7 @@ private:
TopTools_IndexedMapOfShape myVertices; TopTools_IndexedMapOfShape myVertices;
TopTools_IndexedMapOfShape myEdges; TopTools_IndexedMapOfShape myEdges;
TColStd_IndexedMapOfTransient myCurves; TColStd_SequenceOfTransient myCurves;
Handle(IGESSolid_EdgeList) myEdgeList; Handle(IGESSolid_EdgeList) myEdgeList;
Handle(IGESSolid_VertexList) myVertexList; Handle(IGESSolid_VertexList) myVertexList;