> Delivered-To: [EMAIL PROTECTED] > X-Accept-Language: en > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Date: Mon, 15 Oct 2001 01:12:45 +0300 > From: Kostantinos Rekalidis <[EMAIL PROTECTED]> > Subject: [JAVA3D] GeometryInfo class > To: [EMAIL PROTECTED] > > Hi all > I was wondering how I use the GeometryInfo class to construct a Shape3D. > And to be more specific. I have 3 arrays with the vertices and their > normals and colors respectively. How I compute the strips ? Have i to > use the NormalGenerator ? If anynone can give me an example I would be > very gratefull.
Construct a new GeometryInfo object and send in your arrays with setCoordinates(), setNormals(), and setColors(). Then create a Stripifier object and call stripify(GeometryInfo). Then call GeometryInfo.getGeometryArray(). Send this GeometryArray, along with an Appearance, to the Shape3D constructor and then attach the Shape3D to your scene graph. -Paul =========================================================================== 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".
