vertex:position
List of: Scheme Extensions
Subjects: Physical Properties
Contents: Kernel

Action: Gets the position of a vertex.

Filename: kern/kern_scm/vrtx_scm.cxx

Syntax: (vertex:position vertex)

Arg Types: vertex vertex

Returns: position

Description: Returns the position of a vertex.


vertex specifies a vertex.

Example: ; vertex:position

; Create a solid block.

(define block1


(solid:block (position 0 0 0)


(position 35 35 35)))

;; block1

; Get a list of the 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 the position of one vertex.

(vertex:position (entity 7))

;; #[position 35 35 0]
PDF/KERN/15SCR.PDF
HTM/DATA/KERN/KERN/15SCR/0049.HTM