1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

26 lines
526 B
Plaintext

cylinder surf 1
trim surf1 surf 0 3 -1 0
convert surf1 surf1
mkface f1 surf1
trim surf2 surf 0 3 0 1
convert surf2 surf2
mkface f2 surf2
trim surf3 surf 3 6 0 1
convert surf3 surf3
mkface f3 surf3
trim surf4 surf 3 6 -1 0
convert surf4 surf4
mkface f4 surf4
sewing sh f1 f2 f3 f4
getanasurf asurf sh cyl 1.e-7
if {[isdraw asurf]} {
set log [dump asurf]
if { [regexp {CylindricalSurface} $log ] != 1 } {
puts "Error: surface is not a cylindrical surface"
}
} else {
puts "Error: required surface is not got"
}