edge:length
List of: Scheme Extensions
Subjects: Construction Geometry
Contents: Constructors

Action: Returns the length of the edge.

Filename: cstr/cstr_scm/edge_scm.cxx

Syntax: (edge:length edge)

Arg Types: edge entity

Returns: real

Description: Returns the length of the edge.


edge is an input entity.

Example: ; edge:length

; Create a circle.

(define circle(edge:ellipse (position 0 0 0)


(gvector 0 0 1) (gvector 10 0 0) 1 0 360))

;; circle

; Calculate the length of the edge.

(edge:length circle)

;; 62.8318530717959
PDF/CSTR/02SCA.PDF
HTM/DATA/CSTR/CSTR/02SCA/0033.HTM