Java3D's documentation is VERY POOR.
 
When I`m going to review the Triangulator class documentation, I find this:
 
 
Triangulator
 
public Triangulator(int earOrder)
 
 Method Detail
 

triangulate
 
public void triangulate(GeometryInfo gi)
 
     This routine converts the GeometryInfo object from primitive type POLYGON_ARRAY to primitive type
     TRIANGLE_ARRAY using polygon decomposition techniques.
 
      Example of usage:
        Triangulator tr = new Triangulator();
        tr.triangulate(ginfo); // ginfo contains the geometry.
        shape.setGeometry(ginfo.getGeometryArray()); // shape is a Shape3D.
 
     Parameters:
          ginfo - Geometry to be triangulated
 
 
How can I use a Triangulator class fine?
It appears to run only with ordered points in the GeometryInfo, so I needn't it,
I can use a GeometryArray instead.
 
If I want to Triangulate a mass of points, is because I don't have the points ordered!!!!!!!!!!!
 
 
-----Mensaje original-----
De: alvaro zabala <[EMAIL PROTECTED]>
Para: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Fecha: miércoles 16 de mayo de 2001 17:44
Asunto: [JAVA3D] GeometryInfo

I forgot the error's message.
 
java.lang.IllegalArgumentException: StripCounts inconsistent with primitive
 
I created a stripVertexCount of size 1.
 

Reply via email to