curve:eval-curvature
List of: Scheme Extensions
Subjects: Construction Geometry
Contents: Kernel

Action: Evaluates the curvature vector of an edge at the specified SPAparameter.

Filename: kern/kern_scm/crv_scm.cxx

Syntax: (curve:eval-curvature edge parameter)

Arg Types: edge-or-curve curve | edge

parameter real

Returns: gvector

Errors: EDGE with no CURVE

Description: The parameterization of all curves is normalized to lie in the interval 0 to 1, therefore, evaluating at parameter=0 indicates the start point of the curve.


edge-or-curve specifies an edge or a curve


.parameter specifies the length of the curve to evaluate. If the specified parameter lies outside the range 0 to 1, this extension returns an implicit position. A spline can only reliably be evaluated for parametric values from 0 to 1; if parameter is outside of this range for a spline edge, the returned value is meaningless.

Example: ; curve:eval-tan

; Create a circular edge.

(define edge1 edge:circular


(position 0 0 0) 38 0 100))

;; edge1

; Evaluate the curvature at a specific parameter.

(curve:eval-curvature edge1 0.23)

;; #[gvector -0.024223811932959 -0.0102823981181388 0]
PDF/KERN/12SCA.PDF
HTM/DATA/KERN/KERN/12SCA/0033.HTM