You guys are missing the point here.  This behavior is by design.  The
documentation says that with polygon mode set to POLYGON_LINE, lines are
drawn between successive vertices.  When you triangulate the polygon,
successive vertices aren't just the border.

If you want outlines of polygons, use a LineStripArray with a LineAttributes
object instead of a PolygonAttributes object.  In my project I use a
LineStripArray to create a border around my filled polygons.  You may have
to experiment with PolygonOffset to get the borders to look good.

Daniel

-----Original Message-----
From: Justin Couch [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 23, 2000 2:52 AM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] How to get rid of extra lines?


Pasi Paasiala wrote:

> Lee Dixon mentioned that I'm using triangles. It seems that I am but not
on
> purpose. Would it be possible to write a method that would convert any
shape
> that is built from triangles to a shape that would merge neighbouring
> triangles to a polyline when the triangles have identical normals? I quess
> it would, is there anybody who is capable and interested (I'm only
> interested) in doing this. Or should it be done by the video hardware?

The only way around this problem is to DIY. Don't use the utility
classes and create all of your own polygons.

--
Justin Couch                                   Author, Java Hacker
Snr Software Engineer                             [EMAIL PROTECTED]
rbuzz.net                           http://www.vlc.com.au/~justin/
Java3D FAQ                                 http://www.j3d.org/faq/
-------------------------------------------------------------------
"Look through the lens, and the light breaks down into many lights.
 Turn it or move it, and a new set of arrangements appears... is it
 a single light or many lights, lights that one must know how to
 distinguish, recognise and appreciate? Is it one light with many
 frames or one frame for many lights?"      -Subcomandante Marcos
-------------------------------------------------------------------

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

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