Hi, I have 2 polygons each has 7 points, they share 3 points, so the total unique points are 11. I tried 2 ways to render the 2 polygons.
1. Manually triangulate the 2 polygons, send the array of triangles to GeometryInfo class to calculate normals and render the shape. The result shape is shading smoothly across the 2 polygons, no obvious edge between the 2 polygons. The printing result shows there are 11 unique points and 11 normals, so each point just has one normal. 2. Send each polygon to a GeometryInfo class to do triangluation. Get the triangles from each GeometryInfo class and send them together to a third GeometryInfo class to calculate normals and then render the shape. The 2 ploygons are separted by an obvious edge. The printing result shows there are 11 unique points and 16 normals, so some shared points have more than 1 normal. The triangulation did by GeometryInfo generates some long-small triangles. In my case, they generate a triangle using the 3 shared points for each polygon but with opposite direction, so the 2 triangles differ 180 degree. That causes the problem. I am wondering what the triangluation algorithm that Java3D uses, can it be optimized to generate more elegant meshes??? Thank you for your comments and suggestion----white. =========================================================================== 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".
