Hi all,
Thanks to all of you for the clarifications/tips.
I've already just coded the simple triangle fan, and it serves my needs. I
had been getting some grief from someone about it and couldn't prove to
them that it was in fact as I suspected - but I hadn't known about
com.sun.j3d.utils.geometry.* - problem solved.
Regards,
-david
At 05:44 PM 1/20/99 -0800, Kevin Rushforth wrote:
>Hi David,
>
>Java 3D only renders triangles (or convex quadrilaterals that can be
>rendered as a pair of triangles). You need to subdivide non-convex
>polygons, or convex polygons with more than 4 sides, using the
>Triangulator class. We have no plans to change this. Another option
>for convex polygons with more than 4 sides is to take the vertex data
>that describes a convex polygon and render it as a Triangle Fan. If
>you are talking about non-convex polygons, then they need to be
>tessellated before rendering anyway. The low level graphics APIs don't
>render non-convex polygons directly (for good reasons, I might add).
>
>--
>Kevin Rushforth
>Java 3D Team
>Sun Microsystems
>
>[EMAIL PROTECTED]
>
>
>>Date: Wed, 20 Jan 1999 11:51:50 -0800
>>To: [EMAIL PROTECTED]
>>From: David Freda <[EMAIL PROTECTED]>
>>Subject: [java3d] Q: n-sided polygons, n > 4 ?
>>
>>Hi,
>>
>>Is there, or will there be, the ability to draw polygons with more than 4
>>sides without subdividing them into 3- or 4-sided polygons?
>>
>>Several times I've searched the documentation to have my question answered.
>> The question seems to have been asked here once before in July, but I
>>didn't see an answer to it.
>>
>>Maybe I missed something, but it seems to me that polys of more than 4
>>sides are not supported by the Java3D API. Is this correct? There's no
>>specific wording that one can not do polys of more than 4 sides, which left
>>a few of us wondering if that might change to the spec in the future. One
>>could derive one's own class to handle these (from IndexedGeometryArray,
>>say, and call it IndexedPolygonArray), but I hoped that maybe someone out
>>there could comment on this and set us straight once and for all.
>>
>>Thanks in advance,
>>
>>-david
>>
>>+--------------------------------------------------------------------------+
>>+ David Freda, MTS, JPL Mailing Address: M/S 169-315 +
>>+ [EMAIL PROTECTED] (work) 4800 Oak Grove Drive +
>>+ [EMAIL PROTECTED] (home) Pasadena, CA 91109 +
>>+--------------------------------------------------------------------------+
>>DISCLAIMER: JPL now requires notice in all electronic communication that all
>> personal and professional opinions presented herein are my own and do not,
>> in any way, represent the opinion or policy of JPL.
>>=====================================================================
>>To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
>>Java 3D Home Page: http://java.sun.com/products/java-media/3D/
>>
>
+--------------------------------------------------------------------------+
+ David Freda, MTS, JPL Mailing Address: M/S 169-315 +
+ [EMAIL PROTECTED] (work) 4800 Oak Grove Drive +
+ [EMAIL PROTECTED] (home) Pasadena, CA 91109 +
+--------------------------------------------------------------------------+
DISCLAIMER: JPL now requires notice in all electronic communication that all
personal and professional opinions presented herein are my own and do not,
in any way, represent the opinion or policy of JPL.
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/