> Date: Mon, 3 Mar 2003 22:32:39 +0100 > From: trz <[EMAIL PROTECTED]> > > I'm using the NormalGenerator on an IndexedTriangleFan and sometimes it > generates wrong normals (i have some creases in wrong places). I tryed > geomInfo.recomputeIndices() but nothing changed, so I suppose the problem is > not in indexes. What could be a reson for this? Do I have to build triangle > fans in some particular way to use normal generator?
Have you tried setting the crease angle? /** * Set the crease angle. * If two triangles' normals differ by more than * creaseAngle, then the vertex will get two separate normals, creating a * discontinuous crease in the model. This is perfect for the edge * of a table or the corner of a cube, for instance. Clamped to * 0 <= creaseAngle <= PI. Optimizations are made for creaseAngle == 0 * (facet normals) and creaseAngle == PI (smooth shading). */ public void setCreaseAngle(double radians); -- Mark Hood =========================================================================== 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".