mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0029573: ConcatenateWireC0 crashes on two edges wire
Wrong setting first/last vertices is fixed Test case added
This commit is contained in:
parent
7686e915e2
commit
73a7509fde
@ -421,9 +421,9 @@ TopoDS_Edge BRepAlgo::ConcatenateWireC0(const TopoDS_Wire& aWire)
|
|||||||
isReverse = !IsFwdSeq(1);
|
isReverse = !IsFwdSeq(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
TopoDS_Vertex FirstVtx_final = (isReverse)? LastVertex : FirstVertex;
|
TopoDS_Vertex FirstVtx_final = FirstVertex;
|
||||||
FirstVtx_final.Orientation(TopAbs_FORWARD);
|
FirstVtx_final.Orientation(TopAbs_FORWARD);
|
||||||
TopoDS_Vertex LastVtx_final = (isReverse)? FirstVertex : LastVertex;
|
TopoDS_Vertex LastVtx_final = LastVertex;
|
||||||
LastVtx_final.Orientation(TopAbs_REVERSED);
|
LastVtx_final.Orientation(TopAbs_REVERSED);
|
||||||
|
|
||||||
if (CurveSeq.IsEmpty())
|
if (CurveSeq.IsEmpty())
|
||||||
|
14
tests/bugs/modalg_7/bug29573
Normal file
14
tests/bugs/modalg_7/bug29573
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
puts "========"
|
||||||
|
puts "0029573: ConcatenateWireC0 crashes on two edges wire"
|
||||||
|
puts "========"
|
||||||
|
puts ""
|
||||||
|
|
||||||
|
restore [locate_data_file bug29573.brep] w
|
||||||
|
|
||||||
|
explode w
|
||||||
|
|
||||||
|
concatC0wire r1 w_1
|
||||||
|
checknbshapes r1 -vertex 2 -edge 1
|
||||||
|
|
||||||
|
concatC0wire r2 w_2
|
||||||
|
checknbshapes r2 -vertex 2 -edge 1
|
Loading…
x
Reference in New Issue
Block a user