[Fluxus] PData for different primitives

Chris Kaminski skankinsasquatch at gmail.com
Tue Oct 6 14:57:06 PDT 2009


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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pawfal.org/pipermail/fluxus-pawfal.org/attachments/20091006/cde7b1e4/attachment-0001.htm>


More information about the Fluxus mailing list