The Triangulator (and NormalGenerator) should be used via GeometryInfo.
Please see the Javadocs for GeometryInfo for more information.
The Triangulator constructor was not supposed to be public and will
be deprecated in the 1.3 release of Java 3D.
Dan Petersen
Java 3D Team
Sun Microsystems
> MIME-Version: 1.0
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
> Date: Wed, 16 May 2001 18:21:04 +0200
> From: alvaro zabala <[EMAIL PROTECTED]>
> Subject: [JAVA3D] Triangulator is useful????
> To: [EMAIL PROTECTED]
>
> 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.
>
===========================================================================
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".