Hello,

 

I am considering Java3D for an application. One requirement of the application is to be able to expand or contract a volume by different amounts in the x, y and z directions. So for example if I had an egg-shaped volume or a doughnut-shaped volume, I could say:

“Add one centimeter to the x dimension, 2 cm to the y direction, and subtract 1 cm from the z dimension.”

 

In addition, I will need to be able to expand/contract a shape differentially in the positive and negative x, y, z directions. For example the input is to expand the volume by 2 cm in +x and only 1 cm in –x, the x component of the normal to the plane should be considered. If the normal’s x component is +1, that plane should be moved out by 2 cm, if its x component is -1, it should be expanded by 1 cm, etc.

 

My question is:

Does Java3D have some APIs that can facilitate this, or will I need to get all the normals and do all the math myself.

 

 

Thank you,

 

Ted Hill

Reply via email to