Skip to content

Commit

Permalink
0033765: Data Exchange, IGES Export - Missing Model Curves in transfe…
Browse files Browse the repository at this point in the history
…r cache

Curve list should be not unique, list is recommended.
One curve can be used by multiple edges.
  • Loading branch information
dpasukhi committed Sep 10, 2024
1 parent ed20837 commit bcc6af6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/BRepToIGESBRep/BRepToIGESBRep_Entity.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion src/BRepToIGESBRep/BRepToIGESBRep_Entity.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit bcc6af6

Please sign in to comment.