On Fri, May 21, 2010 at 12:23 PM, David Ward Lambert <[email protected]> wrote: > I have a floating point array p > representing a 3 dimensional stack > of shaped bricks projected onto > (possibly warped) film. Each brick > has 6 faces. I wish to use a > polyline of 8 points to display > each face. The faces of a brick > should be the same color. > > $p > 2 3 5 6 8 2 > > Rank 1 items are x y film coordinates. > A rank 2 item forms a polyline. > Rank 3 items are monochrome. > > Color isn't particularly important, as > long as it differs from the background. > If color varies, best if it changes in > the 3 dimensional frame. > > What please is a suitable way to display this?
If everything is the same color, the leading dimensions are not relevant to rendering. In other words, you could render ,/^:3 p (which would be a list of faces). You could try grabbing an opengl demo which renders a cube and plug your geometry into there. (Leaving the random color in place might actually be a good thing.) That said, without having done so myself, I do not know what your geometry looks like and I do not know if a filled face is really what you have represented at rank 2. -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
