Hi! I have a Sphere object.Below are my declarations:
a.setMaterial(m);
//spheres
//new sphere
sph = new Sphere(0.2f, Sphere.GENERATE_NORMALS, 80, a);
sph.setPickable(true);
Shape3D shp3d = sph.getShape();
shp3d.setCapability(Shape3D.ALLOW_GEOMETRY_READ);
Geometry geo = shp3d.getGeometry();
-----------> geo.setCapability(Geometry.ALLOW_INTERSECT);
This is declared before the sphere is added to the scenegraph. It compiles but when I
instantiate thisa object by a DND operation, I get a restrictedaccess exception, not
being able to modify capability bits. The error points to the line with an arrow. Why?
Thanks!
__________________________________
www.edsamail.com
===========================================================================
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".