I’m trying to port a faux-3d visualization tool into JOGL and Java3D. One of the last remaining features that I have not been able to implement involves subtracting out areas of certain geometries. The only two occurrences of this are with Cones and Spheres. With Spheres you can set the maximum/minimum angles for two different dimensions of the Sphere.
To start with I have a sphere:
faux-3d:
java3d:
jogl:
faux-3d with maximum angle U set to 70:
faux-3d with maximum angle U set to 70 and maximum angle V set to 30:
What this looks like to me is just taking boxes/wedges and subtracting out the geometries from a Sphere. I know in Java3D there is a class called ModelClip which probably will help me do this, however it’ll take me a while to figure out since there aren’t any good examples to go by (key word = good). As far as JOGL goes, I have no idea where to start. Usually Nehe is my savior, but this time even he didn’t have anything to offer me. Google hasn’t been much better. Where can I go to learn how to do something like this?
Thanks!