curve:length
List of: Scheme Extensions
Subjects: Construction Geometry
Contents: Kernel

Action: Gets the length of an edge or a curve.

Filename: kern/kern_scm/crv_scm.cxx

Syntax: (curve:length edge-or-curve [start] [end])

Arg Types: edge-or-curve curve | edge

start real

end real

Returns: real

Errors: EDGE with no CURVE


edge-or-curve specifies an edge or a curve.


start is a start parameter.


end is an end parameter.


Note If the parameter values for start and end are outside of 0 and 1, the curve is extrapolate. Spline curves cannot be reliably evaluated for parametric values outside of the interval 0 and 1.

Example: ; curve:length

; Create a circular edge.

(define edge1


(edge:circular (position 0 0 0)


35 5 205))

;; edge1

; Determine the length of the edge.

(curve:length edge1)

;; 122.173047639603
PDF/KERN/12SCA.PDF
HTM/DATA/KERN/KERN/12SCA/0038.HTM