Action:
|
Determines if a Scheme object is a vertex.
|
|
Filename:
|
kern/kern_scm/vrtx_scm.cxx
|
|
Syntax:
|
(vertex? object)
|
|
Arg Types:
|
object
|
scheme-object
|
|
Returns:
|
boolean
|
|
|
object specifies the
scheme-object that has to be queried for a vertex.
|
|
Example:
|
; vertex?
|
|
; Create a solid block.
|
|
(define block1
|
|
|
(solid:block (position 0 0 0)
|
|
|
(position 35 35 35)))
|
|
;; block1
|
|
; Get a list of the block's vertices.
|
|
(entity:vertices block1)
|
|
;; (#[entity 3 1] #[entity 4 1] #[entity 5 1]
|
|
;; #[entity 6 1] #[entity 7 1] #[entity 8 1]
|
|
;; #[entity 9 1] #[entity 10 1])
|
|
; Determine if a vertex is actually a vertex.
|
|
(vertex? (entity 6))
|
|
;; #t
|