mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0024800: Point of intersection was not found for 2d offset curve.
For fix this case in method Geom2dInt_Geom2dCurveTool::NBSamples() number of samples for 2d offset and trimmed curve is computed as max value from number of samples for other curve and number of samples for basis curve. Test case for issue CR24800
This commit is contained in:
22
tests/bugs/moddata_3/bug24800
Executable file
22
tests/bugs/moddata_3/bug24800
Executable file
@@ -0,0 +1,22 @@
|
||||
puts "============"
|
||||
puts "CR24800"
|
||||
puts "==========="
|
||||
puts ""
|
||||
###############################################################################
|
||||
# Point of intersection was not found for 2d offset curve.
|
||||
###############################################################################
|
||||
|
||||
restore [locate_data_file bug24800_curve2.brep] c2
|
||||
|
||||
set inter1 [2dintersect c2]
|
||||
|
||||
set int1 [regexp {Intersection point 1} ${inter1}]
|
||||
|
||||
if { ${int1} == 0 } {
|
||||
puts "Error : Intersection is not found"
|
||||
}
|
||||
|
||||
av2d
|
||||
2dfit
|
||||
|
||||
xwd ${imagedir}/${test_image}.png
|
Reference in New Issue
Block a user