> I have managed to use the triangulator in j3d.util. I am supposed to
> create holes inside a boundary but how come all the holes are also
> rendered as the same appearances as the boundary. Is there any method to
> create holes inside a boundary? Your help would be much appreciated.
If you have 8 points in the array, first 4 desribing the outer boundary
and the other 4 desribing the hole, you should get a quad hole inside a
rendered quad, right.
So, for this 8 point array you should also have stripCounts array and
contourCounts array like this:
int[] stripCounts = {4,4}
int[] contourCounts = {2}
stripCounts tells the triangulator to take first 4 points separately
from the other 4. ContourCounts must match the size of the stripCounts
array and tells how many contours you have - 2, the outer boundary and a
hole.
It is possible to create a hole without the contourCounts array but it's
not the right way.
good luck,
Jure
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/