blob: 164266e7695fb38ae8f414a5dae54b20fa192cc8 [file] [edit]
puts ""
puts "=========================================================================="
puts "OCC31016: Projection of an ellipse or a circle is a B-spline in some cases"
puts "=========================================================================="
puts ""
set projDir { 1 1 1 }
circle c 0 0 0 10
plane p 0 0 0 1 0 1
projonplane r c p [lindex $projDir 0] [lindex $projDir 1] [lindex $projDir 2] 1
if {![regexp {BSplineCurve} [dump r]]} {
puts "ERROR: Projected curve is not a B-spline curve"
}
if {[CheckProjectionToPlane 100 c 0 [expr 2*[dval pi]] r 0 [expr 2*[dval pi]] p $projDir 1.e-6]} {
puts ""
puts "OK: All sample points are projected correctly"
puts ""
} else {
puts ""
puts "ERROR: Projection is incorrect for some points"
puts ""
}