mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0024627: Extrema 2d between an arc of circle and an ellipse crashes
Test case for issue CR24627
This commit is contained in:
parent
362dec17cf
commit
e16f61a62f
@ -137,7 +137,7 @@ fields
|
||||
myDone : Boolean;
|
||||
myIsPar: Boolean;
|
||||
myNbExt: Integer;
|
||||
mySqDist: Real [4];
|
||||
myPoint: POnCurv2d from Extrema [4,2];
|
||||
mySqDist: Real [8];
|
||||
myPoint: POnCurv2d from Extrema [8,2];
|
||||
|
||||
end ExtElC2d;
|
||||
|
24
tests/bugs/moddata_3/bug24627
Executable file
24
tests/bugs/moddata_3/bug24627
Executable file
@ -0,0 +1,24 @@
|
||||
puts "========"
|
||||
puts "OCC24627"
|
||||
puts "========"
|
||||
puts ""
|
||||
######################################
|
||||
## Extrema 2d between an arc of circle and an ellipse crashes
|
||||
######################################
|
||||
|
||||
# Make a planar face (for construction of 2 curves).
|
||||
plane p 0 0 0 0 0 1
|
||||
mkface f p -1000 1000 -1000 1000
|
||||
|
||||
# Load an arc of circle and make a 2d arc.
|
||||
restore [locate_data_file bug24627_circle.brep] c
|
||||
explode c e
|
||||
mk2dcurve c2d c_1 f
|
||||
|
||||
# Load a ellipse and make a 2d ellipse.
|
||||
restore [locate_data_file bug24627_ellipse.brep] e
|
||||
explode e e
|
||||
mk2dcurve e2d e_1 f
|
||||
|
||||
# Compute extrema points for these two 2d curves.
|
||||
2dextrema c2d e2d
|
Loading…
x
Reference in New Issue
Block a user