mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
Method for calculation of correct number of sampling points is added for Adaptor2d_OffsetCurve. Now number of sampling points correspond with similar method for Geom2dAdaptor_Curve for curve type GeomAbs_OffsetCurve Test case added
31 lines
539 B
Plaintext
31 lines
539 B
Plaintext
puts "========"
|
|
puts "0030647: Geom2dGcc_Circ2d2TanRad not giving all the solutions"
|
|
puts "========"
|
|
puts ""
|
|
|
|
restore [locate_data_file bug30647_curve1_720.brep] c1
|
|
restore [locate_data_file bug30647_curve2_720.brep] c2
|
|
|
|
explode c1 e
|
|
mk2dcurve q1 c1_1
|
|
explode c2 e
|
|
mk2dcurve q2 c2_1
|
|
|
|
cirtang r -c q1 -c q2 -r 0.4
|
|
|
|
smallview -2D-
|
|
|
|
2dclear q1
|
|
2dfit
|
|
display q1
|
|
|
|
xwd ${imagedir}/${test_image}.png
|
|
|
|
set NbCurv [llength [directory r_*]]
|
|
|
|
if { $NbCurv == 8 } {
|
|
puts "OK: Number of circles is good"
|
|
} else {
|
|
puts "Error: Not all solutions"
|
|
}
|