Yeah it worked! Thank you very much!
- Original Message -
From: Silvano Maneck Malfatti <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 17, 2003 10:09 PM
Subject: Re: [JAVA3D] Calling a class error
> Try run it:
>
>
>
>
> import com.sun.
Try run it:
import com.sun.j3d.utils.geometry.*;
import javax.media.j3d.*;
import java.awt.*;
import javax.vecmath.*;
import javax.media.j3d.GeometryArray;
import java.applet.Applet;
import com.sun.j3d.utils.geometry.GeometryInfo;
import com.sun.j3d.utils.universe.*;
import javax.media.j3d.Bran
I suggest you to do a method that return the shape3D
For example
Class Polyhedron
{
.
.
.
Shape3D getPolyedron()
{
shape.setGeometry(myPolyhedron);
return shape;
}
}
So, in the second class you must use this:
Polyhedron polyhedron=new Polyhedron(
ay, June 17, 2003 7:37 PM
Subject: Re: [JAVA3D] Calling a class error
> I suggest you to do a method that return the shape3D
>
>
> For example
>
>
> Class Polyhedron
> {
> .
> .
> .
>
> Shape3D getPolyedron()
> {
>
>
I have a the following class which make a
polyhedron
-
import
com.sun.j3d.utils.geometry.*; import javax.media.j3d.*; import
java.awt.*; import javax.vecmath.*; import
javax.media.j3d.GeometryArray; import
java.applet.Applet; import
com.sun.j3d.utils