I'm having trouble understanding some output I'm getting by accessing the
PData for two different primitives:
(clear)
(define *a* (build-cube))
(define *b* (with-state
(translate (vector 3 0 0))
(build-cube)))
(begin
(display (with-primitive *a*
(display (pdata-ref "p" 0))))
(newline))
(begin
(display (with-primitive *b*
(display (pdata-ref "p" 0))))
(newline))
output:
#(-0.5 0.5 -0.5)#<void>
#(-0.5 0.5 -0.5)#<void>
These two cubes share no points because the second one was translated away
from the first, but all their vertices are at the same location when
printed. Am I misunderstanding how pdata works?