Hi all,
I have written some code that outputs a list of verticies that need to
be displayed as a Shape3D object. The problem is that I can't think of
an easy way to sort them into a list that will allow the object to
displayed correctly when passed into the Triangulator class or know of
a class that will take a random list of verticies and output the
required Shape3D object. Can anyone please help?
Thanks,
Jim
Artur Biesiadowski - 05 Jan 2004 22:08 GMT
> Hi all,
>
[quoted text clipped - 4 lines]
> a class that will take a random list of verticies and output the
> required Shape3D object. Can anyone please help?
It cannot be done in general case - there is a lot of ways to connect
all vertices. As long as your object is convex, computing bounding
convex hull should give reasonable result - for nice introduction see
http://www.cse.unsw.edu.au/~lambert/java/3d/hull.html
Artur