entity:get-id
List of: Scheme Extensions
Subjects: Entity
Contents: Kernel

Action: Returns the id tag from the given entity.

Filename: kern/kern_scm/hist_scm.cxx

APIs: api_get_entity_id

Syntax: (entity:get-id entity)

Arg Types: entity entity

Returns: integer


entity specifies the entity to be queried.

Example: ; entity:get-id

; Create a block

(define b (solid:block (position -10 -10 -10)


(position 10 10 10)))

;; b

(define lop (lop:offset-body b 5))

;; lop

(define f (pick:face (ray (position 0 0 0)


(gvector 1 0 0))))

;; f

(entity:set-color f BLUE)

;; ()

(define id (entity:get-id f))

;; id
PDF/KERN/12SCA.PDF
HTM/DATA/KERN/KERN/12SCA/0087.HTM