Andy,

Take a look at the Triangulator class in com.sun.j3d.utils.geometry package, this
should do the trick. Also, there is some information on this in chapter 3 of the
Java3D tutorials.

Cheers, Christoph



>>> [EMAIL PROTECTED] 02/24/00 12:30pm >>>
All,

I have created an Extrusion class which extends Shape3D. The shape of the
extruded object is defined by a cross-section passed to the Extrusion
constructor. I have got the code which generates the side of the extruded
object working successfully.

I have now moved on to writing the code to generate the top and bottom of
the extruded shape. If the given cross-section is convex then a
TriangleFanArray can be used to create the top and bottom caps. However, I
want to be able to deal with both convex and concave cross-sections. Does
anyone have any ideas as to how this might be achieved.

Is Java3D capable of drawing concave polygons? (I don't believe that it is)
Or is there a recgonised way of intelligently dividing the concave polygon
into several convex polygons.

Thanks,

Andy

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