Hi,
U can try using a Geometry node, like quadArray or TriangleAraay.
Preferable TriangleArray as its got better rendering performance.
U need to store the points in a predefined manner using an array of
Point3d then load the TriangleArray using this array. Then do the same old
stuff of attaching the node to scennegraph etc.
BOL.
Gautam Jindal
CSE Department
University of Nebraska,Lincoln.
On Fri, 14 May 1999, R Faulds wrote:
> I have a question about Java and graphics. Forgive
> me for sending to both lists but I don't know much
> about graphics and wasn't sure which applied.
>
> Does anyone know of classes (or class libraries) for
> displaying X,Y,Z coordinate space as a 3D
> projection?
> I'd like to display nodes and connecting arcs
> (lines)
> and be able to:
> (a) zoom in/out
> (b) pan (slide) the whole grid
> (c) rotate the whole grid (to see "bottom" or
> "inside"
> nodes better)
>
> Here is my crude ASCII representation
> (requires fixed font):
>
> (0,1,1) o-------o
> |\ | \
> | \ | \
> | o--|----o
> (0,1,0) o----|--o----|--o
> \ | \ | \
> \ | \ | \
> \ | \ | \
> o-------o------o
> (0,0,0) (1,0,0)
>
>
> The Java ThreeD demo does display a 3D
> projected cube which rotates according to
> mouse input -- but that's all, no scaling, no
> panning.
>
> I'd really LOVE to NOT have to write any of
> this graphics code. I just need the X,Y,Z
> coordinate space representation to help
> display my data for a bunch of interconnected
> nodes and their interconnection status.
>
> Commercial libraries are fine -- but I prefer
> to have the source code.
>
> Thanks,
> -Rob
>
> [EMAIL PROTECTED]
>
> _________________________________________________________
> Do You Yahoo!?
> Free instant messaging and more at http://messenger.yahoo.com
> =====================================================================
> To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
> Java 3D Home Page: http://java.sun.com/products/java-media/3D/
>
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/