Hi,

By default the Spheres share the geometry. You can do it your self as well
by taking the geometry out of first sphere and create new Shape3D objects
using this geometry and the appearance you like.
Sphere sp1 = new Sphere(radius, ap);
Geometry geom = sp1.getShape().getGeometry();
Shape3D sp2 = new Shape3D(geom,ap);
Shape3D sp3 = new Shape3D(geom,anotherAp);

the crux of the problem, "lot of Sphere", lies in the number...can you
specify how many spheres u need to draw?


nitin
> -----Original Message-----
> From: Ra�l [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 17, 2002 3:19 AM
> To: [EMAIL PROTECTED]
> Subject: [JAVA3D] Spheres
> 
> 
> Hello to everybody!
> 
> 
> I have to create a lot of spheres with the
> com.sun.j3d.utils.geometry.Sphere class.
> 
> I want to the spheres share their geometry but not the appearance.
> 
> 
> if I use that ...
> 
> 
> Sphere sp1 = new Sphere(radius, ap);
> Sphere sp2 = new Sphere(radius, ap);
> Sphere sp3 = new Sphere(radius, anotherAp);
> 
> which spheres are sharing geometry??
> 
> Thanks a lot.
> 
> ==============================================================
> =============
> 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".

Reply via email to