I may be wrong about this, but there is no guarantee that you
will get the surface you want from a GeometryInfo object when
the points you provide do not lie in a single plane.

The problem is that a set of points do not uniquely define
a surface.  This is even worst for a closed surface (such
as a cube).  The problem is easy for you as a human, but think
of it as a programming problem and you probably will appreciate
the difficulty.

GeometryInfo is discussed in Chapter 3 of the Java 3D API tutorial.
Find the Java 3D Tutorial "Getting Started with the Java 3D API" at
java.sun.com/products/javamedia/3d/collateral

--
-----
Dennis J Bouvier
[EMAIL PROTECTED]


Your Name wrote:
>
> Hi,
>
> I'm sure there is an easy answer to this, but I still can't get it to work.
> What I'm trying to do is to display a simple cube within Java3D. Now, I
> know, I could use the ColorCube class for this (works fine), but I want to
> do it via the GeometryInfo to be able to later on create more complicated
> objects. So what I do is to define the 8 vertices of a cube to be
> (0,0,0),(0,0,1),... up to (1,1,1), pass this set of coordinates to the
> GeometryInfo, triangulate, generate normals, stripify and create a Shape3D
> from it. Code is as follows:
>
==== <big snip>====
>
> Still, the same effect, only a few triangles show up, not a full cube.
>
> Probably I did misunderstand the way the Triangulator works, can anybody shed light 
>on this?
>
> Regards
>
> HEIKO
> [EMAIL PROTECTED]
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to