Can you please provide more detail?

This can't be right.  The triangulator simply divides polygons into
individual triangles.  The stripifier will make strips, but the only
way to get a fan out of the geometry utilities is to send in a fan (and
not call the triangulator or stripifier).

Quads sent into GeometryInfo using QUAD_ARRAY are divided into two
triangles.  The NormalGenerator will generate the same normal for both
triangles, but otherwise we treat them just like two triangles.

Quads sent into GeometryInfo using POLYGON_ARRAY will be sent through
the triangulator who will divide them into individual triangles
according to the complex algorithms in the triangulator.  It will first
project the polygon into a plane and then pull out the triangles.
But it should only make two triangles per quad.

-Paul

> Delivered-To: [EMAIL PROTECTED]
> MIME-Version: 1.0
> Date: Wed, 17 Oct 2001 13:02:37 -0400
> From: "Dvorak, Daniel J." <[EMAIL PROTECTED]>
> Subject: [JAVA3D] Possible to control trianglulator?
> To: [EMAIL PROTECTED]
>
> In looking at the coordinates contained in a GeometryArray, I just
> discovered that the Triangulator is dividing a simple 4-sided polygon into
> what looks like a triangle fan with 14 triangles.  I believe this is causing
> my application to take much more memory than it should, as I'm drawing a lot
> of 4-sided polygons.
>
> I use GeometryInfo to load my geometry.  Is there some way to specify the
> triangle density that the triangulator generates?  In my application, two
> triangles would be sufficient for a 4-sided polygon, and would probably
> conserve memory.
>
> Daniel Dvorak

===========================================================================
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