mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03: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.
14 lines
259 B
Plaintext
14 lines
259 B
Plaintext
ellipse bz 0 0 0 0 0 1 1 .5
|
|
convert bz bz
|
|
mkedge e bz
|
|
getanacurve c e ell 1.e-7
|
|
if {[isdraw c]} {
|
|
set log [dump c]
|
|
if { [regexp {Ellipse} $log ] != 1 } {
|
|
puts "Error: curve is not an ellipse"
|
|
}
|
|
} else {
|
|
puts "Error: required curve is not got"
|
|
}
|
|
|