Hi, I want to create a visualization tool where I want to use a custom designed 3D model (a combination of cylinder and cone) and use it around. Can anyone please tell me if there is a way through which I can do this.
I found a project, but I don't think it is supported anymore.
I am adding an image of the shape I want to use. . The arrow part here will be a cone while the bent pipe can be made by a combination of cylinders.
One option is to group all the individual primitive shapes under one BranchGroup and interact with it that way.
The other, likely better option is to look at the code inside cone and cylinder to see how they marshal a list of triangles, you could then directly fill in a single trianglearray with exactly the geometry you want.
UnBBoolean should work with the latest version of Java3D, I advise you to use it (except if you disagree with its licensing terms) instead of starting from scratch even though Harvey's suggestions are fine (I prefer his second suggestion as it is easier to "port" to another scenegraph API).
Sorry for my unsatisfying answer but JMonkeyEngine 3 has its own port of this library and an other library under MIT license for CSG as far as I know. I will port the latter to JogAmp's Ardor3D Continuation, it's explained here:
I have no example with Java3D. Of course, it would be better if someone could give an example using this engine.