|
Hi
Tobias
Supposing you have TransformGroups called
bottomViewTG, topViewTG, rightViewTG, leftViewTG and backViewTG, each containing
a proper ViewPlatform (that attaches to a View, that renders to a Canvas3D),
transformation setup is as follows:
Transform3D tempT3D = new
Transform3D();
Transform3D auxT3D = new Transform3D(); auxT3D.setTranslation(new Vector3d(0.0, 0.0, 15.0));
tempT3D.rotX(Math.PI/2);
tempT3D.mul(auxT3D); bottomViewTG.setTransform(tempT3D);
tempT3D.rotX(-Math.PI/2);
tempT3D.mul(auxT3D); topViewTG.setTransform(tempT3D);
tempT3D.rotY(Math.PI/2);
tempT3D.mul(auxT3D); rightViewTG.setTransform(tempT3D);
tempT3D.rotY(-Math.PI/2);
tempT3D.mul(auxT3D); leftViewTG.setTransform(tempT3D);
tempT3D.rotY(Math.PI);
tempT3D.mul(auxT3D); backViewTG.setTransform(tempT3D); Hope this helps.
F�bio
|
- [JAVA3D] Set Views Top Front & Left... Tobias Bergman
- FABIO ROBERTO MIRANDA
