Action:
|
Returns the minimum radius of curvature of a curve.
|
|
Filename:
|
kern/kern_scm/qedg_scm.cxx
|
|
Syntax:
|
(edge:min-rad in-edge)
|
|
Arg Types:
|
in-edge
|
edge
|
|
Returns:
|
real
|
|
Errors:
|
-1 (when no curvature)
|
|
Description:
|
Returns the minimum radius of curvature of a curve.
|
|
|
in-edge specifies an edge.
|
|
Example:
|
; edge:min-rad
|
|
; Create a circular curve and convert to an edge.
|
|
(define edge1 (edge:from-curve
|
|
|
(curve:circular (position 0 0 0) 15)))
|
|
;; edge1
|
|
(edge:min-rad edge1)
|
|
; Minimum Radius of Curvature: 15
|
|
;; 15
|
|
; Create a circular curve and convert to an edge.
|
|
(define edge2 (edge:from-curve
|
|
|
(curve:circular (position 0 0 0) 30)))
|
|
;; edge2
|
|
(edge:min-rad edge2)
|
|
; Minimum Radius of Curvature: 30
|
|
;; 30
|