Im working with a lot of edges, which have a representation on the same face (mostly created by projection (BRepOffsetAPI_NormalProjection)).
I add all these edges to a TopoDS_Compound, using BRep_Builder.
Because these calculations are time consuming, I want to store the results (Edges, with 2D representation on my face) in a BREP-file.
So I use BRepTools::Write() to export the compound to file.
When i reload the file (using BRepTools::Read) the loaded edges have no 2D representation on the face anymore...
Right now, I use ShapeFix_Edge::FixAddPCurve(myEdge, myFace, false) to fix that problem.
However, this fix takes around 200ms to perform for each Edge
What I tried already:
To be sure about the representation I checked with ShapeAnalysis_Edge::HasPCurve(myEdge, myFace) before exporting to BREP, which returns true.
I added the face to the compound (BRep_Builder::Add(myCompoundIncludingAllEdges, myFace)) before exporting to BREP.
-> Unfortunately no change after Import.