Hi Donnie,
The implementation is correct, see
/**
* Constructs a Shape3D node with default parameters. The default
* values are as follows:
* <ul>
* appearance : null<br>
* geometry : { null }<br>
* collision bounds : null<br>
* appearance override enable : false<br>
* </ul>
* The list of geometry components is initialized with a null
* geometry component as the single element with an index of 0.
* A null geometry component specifies
* that no geometry is drawn. A null appearance component specifies
* that default values are used for all appearance attributes.
*/
public Shape3D() {
}
- Kelvin
-------------
Java 3D Team
Sun Microsystems Inc.
>MIME-Version: 1.0
>Content-Transfer-Encoding: 7bit
>X-Priority: 3 (Normal)
>X-MSMail-Priority: Normal
>Importance: Normal
>X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
>Date: Thu, 24 May 2001 17:40:12 -0700
>From: Donnie Pinkston <[EMAIL PROTECTED]>
>Subject: [JAVA3D] Shape3D.getAllGeometries()
>To: [EMAIL PROTECTED]
>
>I found that Shape3D.getAllGeometries() is returning an enumeration where
>the first element is null! (My Shape3D objects have a single geometry
>inside, and Shape3D.numGeometries() returns 2!) Is this expected behavior?
>
>The Shape3D is created with the default constructor; i.e. no Geometry is
>added at construction time. Later, the Geometry is added using
>Shape3D.addGeometry().
>
>I am retrieving the enumeration of geometries before the Shape3D is live or
>compiled.
>
>I am using Java3D version 1.2.1 on Java 1.3.1, on Windows 2000 SP1.
>
>Thanks,
>
>-Donnie Pinkston
>
>===========================================================================
>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".
===========================================================================
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".