face:plane-ray
List of: Scheme Extensions
Subjects: Construction Geometry
Contents: Kernel

Action: Gets the plane from a planar face as a ray.

Filename: kern/kern_scm/qfac_scm.cxx

Syntax: (face:plane-ray entity)

Arg Types: entity planar-face

Returns: gvector

Description: This extension represents the specified planar face as a ray.


entity specifies a face entity.

Example: ; face:plane-ray

; Create a solid block.

(define block1


(solid:block (position 0 0 0)


(position 40 40 40)))

;; block1

; Get a list of the solid block's faces.

(define faces1 (entity:faces block1))

;; faces1

; Extract a plane from one of the faces and

; represent the face as a ray.

(face:plane-ray (car (cdr faces1)))

;; #[ray (20 20 0) (0 0 -1)]

; Do the same with a second face.

(face:plane-ray (car (cdr (cdr (cdr faces1)))))

;; #[ray (0 20 20) (-1 0 0)]
PDF/KERN/13SCF.PDF
HTM/DATA/KERN/KERN/13SCF/0010.HTM