1
0
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:
gka
2014-04-10 15:45:18 +04:00
committed by abv
parent 2bb3ffc5af
commit 4c04024c75
6 changed files with 81 additions and 40 deletions

22
tests/bugs/moddata_3/bug24800 Executable file
View 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