1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-06-10 11:34:06 +03:00

Data Exchange, IGES Export - Missing Model Curves in transfer cache #483

Check if the curve was already created and use it. Works for shared edges cases.
This commit is contained in:
ikochetkova 2025-04-22 18:01:06 +01:00 committed by dpasukhi
parent f95594f475
commit 784bf6d4b9

View File

@ -317,6 +317,13 @@ Handle(IGESData_IGESEntity) BRepToIGESBRep_Entity::TransferShape(
Handle(IGESData_IGESEntity) BRepToIGESBRep_Entity::TransferEdge(const TopoDS_Edge& myedge)
{
Standard_Integer anInd = IndexEdge(myedge);
if (anInd != 0)
{
Handle(IGESData_IGESEntity) ICurve3d = Handle(IGESData_IGESEntity)::DownCast(myCurves(anInd));
if (!ICurve3d.IsNull())
return ICurve3d;
}
BRepToIGES_BRWire BR(*this);
BR.SetModel(GetModel());
TopTools_DataMapOfShapeShape anEmptyMap;