entity:delete
List of: Scheme Extensions
Subjects: Entity
Contents: Kernel

Action: Deletes an entity or list of entities and any attributes attached to those entities.

Filename: kern/kern_scm/ent_scm.cxx

APIs: api_del_entity_list

Syntax: (entity:delete entity-list)

Arg Types: entity-list entity | (entity ... )

Returns: unspecified


entity-list specifies an entity or an entity list that has to be deleted.

Example: ; entity:delete

; Create a block.

(define block1


(solid:block (position 0 0 0)


(position 20 20 20)))

;; block1

; Delete block1.

(entity:delete block1)

;; ()

; Create a cylinder.

(define cyl2


(solid:cylinder (position 0 0 0)


(position 5 5 10) 5))

;; cyl2

; Create another block.

(define block3


(solid:block (position 0 0 0)


(position -10 -10 -10)))

;; block3

; Delete the cylinder and the second block.

(entity:delete (list cyl2 block3))

;; ()
PDF/KERN/12SCA.PDF
HTM/DATA/KERN/KERN/12SCA/0083.HTM