Hello Kelvin,
Could you finally have a look in the triangulation problem that we are constantly having? There is a simple test case that you can use to verify (and possibly fix) the problem.
The problem is that the following data should create a rectangle with a hole inside:
Point3d[] coordinates = {
//outer bounds of the polygon
new Point3d(2., 0.0, 0.0),
new Point3d(2., 0.0, 1.3),
new Point3d(0.0, 0.0, 1.3),
new Point3d(0.0, 0.0, 0.0),
//the hole
new Point3d(1.93, 0.0, 0.07),
new Point3d(0.07, 0.0, 0.07),
new Point3d(0.07, 0.0, 1.13),
new Point3d(1.93, 0.0, 1.13)
};
This data is simplified by Dave Smith from the original data that is used in the attached java code. This code creates a shape that shows the problem. The problem has been discussed earlier also and several members of the list seem to agree that it is a bug.
The related discussion is found in the mails:
http://swjscmail1.java.sun.com/cgi-bin/wa?A2=ind0301&L=java3d-interest&P=R33477
and
http://swjscmail1.java.sun.com/cgi-bin/wa?A2=ind0302&L=java3d-interest&D=0&P=49478
Regards,
Pasi
ContourTest.java
Description: JavaScript source
