mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0031140: Draw command "cirtang" raises exception on the parallel curves
Exception in the algorithm Geom2dGcc_Circ2dTanOnRadGeo raised because the number of solutions exceeded the size of reserved array for solutions. A check has been added to forbid adding solutions outside of allocated place. The similar protection has been done in other algorithms of this package.
This commit is contained in:
9
tests/lowalgos/2dgcc/bug31140
Normal file
9
tests/lowalgos/2dgcc/bug31140
Normal file
@@ -0,0 +1,9 @@
|
||||
puts "======================="
|
||||
puts "0031140: Draw command cirtang raises ex-ception on the parallel curves"
|
||||
puts "======================="
|
||||
|
||||
restore [locate_data_file bug31140_edge1.brep] e1
|
||||
restore [locate_data_file bug31140_edge2.brep] e2
|
||||
mk2dcurve c1 e1
|
||||
mk2dcurve c2 e2
|
||||
cirtang res -c c1 -c c2 -r .1
|
Reference in New Issue
Block a user