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

Action: Gets the ray along the axis of a cylindrical-face entity.

Filename: kern/kern_scm/qfac_scm.cxx

Syntax: (face:cylinder-axis entity)

Arg Types: entity cylindrical-face

Returns: ray

Description: The returned ray is a gvector and position that specify the central axis of the cylinder face supplied as the entity input. Note that the input argument is cylinder face and not a solid:cylinder.

entity specifies a cylindrical-face.

Example: ; face:cylinder-axis

; Create a solid cylinder.

(define cyl1

(solid:cylinder (position 0 0 0)

(position 8 8 8) 32))

;; cyl1

; Find the faces of the cylinder.

(define faces1 (entity:faces cyl1))

;; faces1

; Determine the axis of a cylindrical face.

(face:cylinder-axis (car faces1))

;; #[ray (4 4 4) (0.57735 0.57735 0.57735)]