0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / tests / bugs / modalg_7 / bug31016_07
1 puts ""
2 puts "=========================================================================="
3 puts "OCC31016: Projection of an ellipse or a circle is a B-spline in some cases"
4 puts "=========================================================================="
5 puts ""
6
7 ellipse c 0 0 0  0 0 1  2 1 0  20 10
8 plane p 0 0 0  0 1 10
9 projonplane r c p 1
10
11 if {![regexp {BSplineCurve} [dump r]]} {
12   puts "ERROR: Projected curve is not a B-spline curve"
13 }
14
15 if {[CheckProjectionToPlane 100 c 0 [expr 2*[dval pi]] r 0 [expr 2*[dval pi]] p {} 1.e-6]} {
16   puts ""
17   puts "OK: All sample points are projected correctly"
18   puts ""
19 } else {
20   puts ""
21   puts "ERROR: Projection is incorrect for some points"
22   puts ""
23 }