Action:
|
Gets the start parameter of an edge or curve.
|
|
Filename:
|
kern/kern_scm/crv_scm.cxx
|
|
Syntax:
|
(curve:start-param edge-or-curve)
|
|
Arg Types:
|
edge-or-curve
|
curve | edge
|
|
Returns:
|
real
|
|
Errors:
|
EDGE with no
CURVE
|
|
Description:
|
This extension returns the normalized parameter value of the start of a curve or edge as a real.
|
|
|
edge-or-curve specifies an edge or a curve.
|
|
Example:
|
; curve:start-param
|
|
; Create circular edge 1.
|
|
(define edge1
|
|
|
(edge:circular
|
|
|
(position 0 0 0) 25 0 185))
|
|
;; edge1
|
|
; Find circular edge 1's start parameter.
|
|
(curve:start-param edge1)
|
|
;; 0
|
|
; Create circular edge 2.
|
|
(define edge2
|
|
|
(edge:circular
|
|
|
(position 12 15 -3) 45 66 205))
|
|
;; edge2
|
|
; Find circular edge 2's start parameter.
|
|
(curve:start-param edge2)
|
|
;; 1.15191730631626
|