The NormalGenerator utility works only on GeometryInfo objects.
Other utilities are the triangulator and stripifier.  After the
utilities operate on the GeometryInfo object, the resulting
geometry can be used in a Shape3D object.

All of this is covered in Section 3.3 of the tutorial, including
a complete (simple) example.  An excerpt of the example appears
below.

Find the Java 3D Tutorial "Getting Started with the Java 3D API" at
java.sun.com/products/javamedia/3d/collateral


 GeometryInfo gi = new GeometryInfo(GeometryInfo.POLYGON_ARRAY);
 gi.setCoordinates(coordinateData);
 gi.setStripCounts(stripCounts);

 Triangulator tr = new Triangulator();
 tr.triangulate(gi);

 NormalGenerator ng = new NormalGenerator();
 ng.generateNormals(gi);

 Stripifier st = new Stripifier();
 st.stripify(gi);

 Shape3D part = new Shape3D();
 part.setAppearance(appearance);
 part.setGeometry(gi.getGeometryArray());



"Casteel, Don" wrote:
>
> Didn't I see a class somewhere for Automatically generating normals from
> retained geometry?
>
> Don Casteel
>
> Manufacturing Engineer
> TEXTRON Automotive Company -- Athens Operations
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>         Voice:  (423)744-1109
>         Fax:    (423)744-1112
>         Pager:  (423)744-1129  -- 109
>                 Internet:       [EMAIL PROTECTED]
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> ===========================================================================
> 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".

--
-----
Dennis J Bouvier
[EMAIL PROTECTED]

===========================================================================
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".

Reply via email to