mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-05-16 10:54:53 +03:00
0024920: Invalid result of Pipe construction
Added test case bugs/modalg_5/bug24920
This commit is contained in:
parent
ab58a62baa
commit
d92035598f
@ -161,6 +161,9 @@ void BRepFill_ShapeLaw::Init(const Standard_Boolean Build)
|
|||||||
IsReallyClosed = V1.IsSame(V2);
|
IsReallyClosed = V1.IsSame(V2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (IsReallyClosed &&
|
||||||
|
Abs(C->FirstParameter() - First) > Precision::PConfusion())
|
||||||
|
IsReallyClosed = Standard_False; //trimmed curve differs
|
||||||
|
|
||||||
if ((ii>1) || !IsReallyClosed ) { // Trim C
|
if ((ii>1) || !IsReallyClosed ) { // Trim C
|
||||||
Handle(Geom_TrimmedCurve) TC = new Geom_TrimmedCurve(C,First, Last);
|
Handle(Geom_TrimmedCurve) TC = new Geom_TrimmedCurve(C,First, Last);
|
||||||
|
15
tests/bugs/modalg_5/bug24920
Normal file
15
tests/bugs/modalg_5/bug24920
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
puts "=========="
|
||||||
|
puts "OCC24920"
|
||||||
|
puts "=========="
|
||||||
|
puts ""
|
||||||
|
#########################################
|
||||||
|
# Invalid result of Pipe construction
|
||||||
|
#########################################
|
||||||
|
|
||||||
|
restore [locate_data_file bug24920_Comp.brep] c
|
||||||
|
|
||||||
|
explode c
|
||||||
|
pipe result c_1 c_2
|
||||||
|
checkshape result
|
||||||
|
|
||||||
|
set 2dviewer 1
|
Loading…
x
Reference in New Issue
Block a user