0025957: nurbsconvert modifies original shape
[occt.git] / tests / bugs / modalg_6 / bug27704
1 puts "========"
2 puts "OCC27704"
3 puts "========"
4 puts ""
5 #################################################
6 # Numeric inaccuracy due to huge extension of the offset faces
7 #################################################
8
9 # Input shell contains two planar faces with linear edges.
10 # The result of offset operation is also expected to contain
11 # only simple geometries (planes, lines, 2d lines).
12 # Due to inaccuracy SameParameter can convert 2d lines
13 # into 2d BSpline curves.
14
15 restore [locate_data_file bug27704.brep] s
16 offsetparameter 1e-7 p i
17 offsetload s 1
18 offsetperform result
19 if {[regexp {BSpline} [dump result]]} {
20   puts "Error: BSpline is created"
21 }
22