entity:next
List of: Scheme Extensions
Subjects: Model Topology
Contents: Kernel

Action: Gets the next LUMP, SHELL, FACE, LOOP or COEDGE in an entity list.

Filename: kern/kern_scm/ent_scm.cxx

Syntax: (entity:next entity)

Arg Types: entity entity

Returns: entity

Description: Returns the next entity in an entity list.


entity specifies the entity that has to be queried.

Example: ; entity:next

; Create a solid block.

(define block1 (solid:block (position 0 0 0)


(position 15 10 5)))

;; block1

; Determine its owner.

(entity:owner block1)

;; #[entity 2 1]

; Get the faces of the block.

(define faces1 (entity:faces block1))

;; faces1

; faces1 ==>

; #[entity 3 1] #[entity 4 1] #[entity 5 1]

; #[entity 6 1] #[entity 7 1] #[entity 8 1]

; Determine the next face in the list.

(entity:next (list-ref faces1 0))

;; #[entity 4 1]
PDF/KERN/12SCA.PDF
HTM/DATA/KERN/KERN/12SCA/0094.HTM