mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-25 17:00:35 +05:00
0022512: [CEA 1073] FuseCollinearEdgesWithinWire makes the orginal shape invalid
This commit is contained in:
parent
2df46277e9
commit
c2e6c12db3
@ -991,8 +991,11 @@ TopoDS_Edge GEOMImpl_ShapeDriver::MakeEdgeFromWire(const TopoDS_Shape& aWire,
|
||||
if (CurveSeq(1)->IsInstance(STANDARD_TYPE(Geom_TrimmedCurve)))
|
||||
CurveSeq(1) = (*((Handle(Geom_TrimmedCurve)*)&(CurveSeq(1))))->BasisCurve();
|
||||
|
||||
CurveSeq(1)->Transform(LocSeq(1).Location().Transformation());
|
||||
ResEdge = BRepLib_MakeEdge(CurveSeq(1),
|
||||
Handle(Geom_Curve) aNewCurve =
|
||||
Handle(Geom_Curve)::DownCast(CurveSeq(1)->Copy());
|
||||
|
||||
aNewCurve->Transform(LocSeq(1).Location().Transformation());
|
||||
ResEdge = BRepLib_MakeEdge(aNewCurve,
|
||||
FirstVtx_final, LastVtx_final,
|
||||
FparSeq(1), LparSeq(1));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user