I posted a similar question some time ago.
Sun answered with "no" for the actual java3d release,
but it's supposed to be implemented in the java3d 1.2 version.
Christian
John Chisholm/CAM/Lotus wrote:
> I apologize in advance if this is a novice question, but I am a Java3D
> novice. I wish to create some complex geometries using Shape3D, but I seem
> to be confined to one geometric type when doing so (e.g., QuadArray, or
> TriangleArray). For example, creating a simple bridge stansion for a
> driving simulator would be relatively easy if I were to use Primitive, and
> compose the stansion of several Box objects added as children to a
> TransformGroup which is then added to the Primitive object. The extension
> of this architecture to the creation of the entire bridge seems
> straightforward enough. However, if I were to use a Shape3D object, the
> stansion itself changes from several simple Boxes to an enormous QuadArray.
> The bridge would then become a much larger multiple of this situation. My
> question is this: Can a Shape3D object be composed of more than one
> geometric type, and if so how? Can it include Primitives? Something along
> the lines of the pseduo-code below, is what I am hoping for, I guess.
>
> MyShape extends Shape3D {
> private Box myBox;
> private Cylinder myCylinder;
> private QuadArray myQuad;
> private TriangleArray myTriad;
> public MyShape() {
> this.setGeometry(createGeometry());
> }
> Geometry createGeometry() {
> // create a Cylinder, a Box, the QuadArray, and the TriangleArray
> // return some composite geometry
> }
> }
>
> Thanks,
> John Chisholm
> [EMAIL PROTECTED]
>
> =====================================================================
> To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
> Java 3D Home Page: http://java.sun.com/products/java-media/3D/
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/