mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-12 02:40:22 +08:00
GeomConvert_CurveToAnaCurve, GeomConvert_SurfToAnaSurf - geometrical algorithms for converting geometrical curve and surfaces in canonical geometry with given tolerance. ShapeAnalysis_CanonicalRecognition - interface for checking canonical geometry.
16 lines
353 B
Plaintext
16 lines
353 B
Plaintext
cylinder cyl 0 0 0 1 1 1 1
|
|
mkface f cyl 0 2 0 1
|
|
explode f w
|
|
nurbsconvert w f_1
|
|
cylinder cyl 0.1 0.1 0.1 1 1 1 .9
|
|
getanasurf res w cyl 1.e-3 cyl
|
|
if {[isdraw res]} {
|
|
set log [dump res]
|
|
if { [regexp {CylindricalSurface} $log ] != 1 } {
|
|
puts "Error: surface is not a cylindrical surface"
|
|
}
|
|
} else {
|
|
puts "Error: required surface is not got"
|
|
}
|
|
|