mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +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.
16 lines
311 B
Plaintext
16 lines
311 B
Plaintext
beziercurve bz 3 0 0 0 .5 .5e-6 0 1 0 0
|
|
mkedge e1 bz 0 .3
|
|
mkedge e2 bz .3 0.7
|
|
mkedge e3 bz .7 1.
|
|
wire w e1 e2 e3
|
|
getanacurve c w lin 1.e-3
|
|
if {[isdraw c]} {
|
|
set log [dump c]
|
|
if { [regexp {Line} $log ] != 1 } {
|
|
puts "Error: curve is not a line"
|
|
}
|
|
} else {
|
|
puts "Error: required curve is not got"
|
|
}
|
|
|