Action:
|
Controls how an entity is printed in Scheme output.
|
|
Name String:
|
print_entity_type
|
|
Scheme:
|
boolean
|
#f, #t
|
#f
|
|
Test Harness:
|
Not applicable
|
|
C++:
|
Not applicable
|
|
Description:
|
If this option is on (true), the type name of the entity (e.g., face, body, etc.) gets printed in Scheme output instead of just the string "entity". If it is off, Scheme simply prints "entity".
|
|
Example:
|
; print_entity_type
|
|
; Create a body and print some entity information
|
|
(define b (solid:block (position 0 0 0)
|
|
|
(position 1 1 1)))
|
|
;; b
|
|
b
|
|
;; #[entity 2 1]
|
|
(entity:faces b)
|
|
;; (#[entity 3 1] #[entity 4 1] #[entity 5 1]
|
|
;; #[entity 6 1] #[entity 7 1] #[entity 8 1])
|
|
;
|
|
; Turn the option on and repeat
|
|
(option:set "print_entity_type" #t)
|
|
;; #f
|
|
(define b (solid:block (position 0 0 0)
|
|
|
(position 1 1 1)))
|
|
;; b
|
|
b
|
|
;; #[body 9 1]
|
|
(entity:faces b)
|
|
;; (#[face 10 1] #[face 11 1] #[face 12 1]
|
|
;; #[face 13 1] #[face 14 1] #[face 15 1])
|