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:
parent
f95594f475
commit
784bf6d4b9
@ -317,6 +317,13 @@ Handle(IGESData_IGESEntity) BRepToIGESBRep_Entity::TransferShape(
|
|||||||
|
|
||||||
Handle(IGESData_IGESEntity) BRepToIGESBRep_Entity::TransferEdge(const TopoDS_Edge& myedge)
|
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);
|
BRepToIGES_BRWire BR(*this);
|
||||||
BR.SetModel(GetModel());
|
BR.SetModel(GetModel());
|
||||||
TopTools_DataMapOfShapeShape anEmptyMap;
|
TopTools_DataMapOfShapeShape anEmptyMap;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user