Convert a POlygon to a Shape3D

Hi,

Ay body tell me how (via code example please)
to convert a single polygon or a resulting triangle List to a Shape3D

Cheers

Rmdire

Please look at the Xith Getting Started Guide, there is a section on Geometry.
http://xith.org/tutes/GettingStarted/html/simple_geometry.html
The coords[] array that you see is the list of the points that forms dots, lines, triangles or quad, depending on which Geometry class you use (in your case you probably want TriangleArray).
(Note : A Shape3D is basically a Geometry (TriangleArray, QuadArray, LineArray…) + one Appearance, defining different settings.

TriangleStripArray, TriangleFanArray, TriangleArray, QuadArray… all extend Geometry.

new Shape3D(Geometry, Appearance)
or simply
new Shape3D(Geometry)

Thanks chaps,

Appreciate the help.