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.
13 lines
252 B
Plaintext
13 lines
252 B
Plaintext
polyline w 0 0 0 1 0 0 1 1 0 0 1 0 0 0 0
|
|
getanasurf res w pln 1.e-3
|
|
if {[isdraw res]} {
|
|
set log [dump res]
|
|
if { [regexp {Plane} $log ] != 1 } {
|
|
puts "Error: surface is not a plane"
|
|
}
|
|
} else {
|
|
puts "Error: required surface is not got"
|
|
}
|
|
|
|
|