[fluxus] pdata storage question

Dave Griffiths dave at pawfal.org
Thu Feb 16 07:57:52 PST 2006


> okay, sounds good.. but how does this make sense?
> (define ob (build-sphere 20 20))
> (grab ob)
> (display (pdata-get "p" 0))
> (display (pdata-get "n" 0))
> (newline)
> (display (pdata-get "p" 1))
> (display (pdata-get "n" 1))
> (newline)
> (display (pdata-get "p" 2))
> (display (pdata-get "n" 2))
> (newline)
> (display (pdata-get "p" 3))
> (display (pdata-get "n" 3))
> (newline)
> (display (pdata-get "p" 4))
> (display (pdata-get "n" 4))
> (ungrab)
>
> gives:
> #(0.0 1.0 0.0)#(0.0 1.0 0.0)
> #(0.0 0.987688362598419 0.15643447637558)#(0.0 0.987688362598419
> 0.15643447637558)
> #(0.0 1.0 0.0)#(0.0 1.0 0.0)
> #(0.0 1.0 0.0)#(0.0 1.0 0.0)
> #(0.0 0.987688362598419 0.15643447637558)#(0.0 0.987688362598419
> 0.15643447637558)
>
> is pdata indexed like (0...size-1) or (1..size)
> either way it looks to me like the first triangle has 3 points and 2
> of those are the same (ie it is a line not a triangle)

you're not looking at a sphere are you? it looks like a degenerate
triangle - could possibly be coming from the very top section of the
sphere. pdata is indexed from 0.

> I hope all my questions aren't bothering you, once I get my head
> around fluxus i'd like to help you extend it and fix the bugs i
> find... but I've gotta figure it out better first :)

it's good, it highlights areas where the docs need expanding, and gets it
in the list archive so we can add it later on.

cheers,

dave




More information about the Fluxus mailing list