entray
List of: Scheme Extensions
Subjects: Ray Testing
Contents: Kernel

Action: Creates an entray.

Filename: kern/kern_scm/eray_scm.cxx

Syntax: (entray entity ray)

Arg Types: entity entity

ray ray

Returns: entray

Description: An entray is a scheme-object with an entity component and a ray component. They are not saved when a part is saved. Entrays are represented externally in the form #[entray n p (x y z) (a b c)], indicating its entity components are #[entity n p] and its ray components are #[ray (x y z) (a b c)].


The argument entity specifies the entity component.


The argument ray specifies the ray component.

Example: ; entray

; Create a solid block.

(define block1


(solid:block (position 0 0 0)


(position 10 15 5)))

;; block1

; Create an entity ray using the block.

(entray block1


(ray (position 0 0 0)


(gvector 0 0 1)))

;; #[entray 2 1 (0 0 0) (0 0 1)]
PDF/KERN/12SCA.PDF
HTM/DATA/KERN/KERN/12SCA/0109.HTM