Overview  First Applet  First Application   First Graph  First Project  Models  Loader  Keyframe  Linear Alg  Torus Knot  Picking  Camera Events  Color Selector  Slider  Ruler  Vector Field  Polygon Sets  Scalar Field   ODE  Root Finder  Parm Curve  Parm Surface  L-System  Texture  Refinement  4D Transform  Size Vertex  Size Polygon  Size Edge 

Transformation of 4D Geometries in Display

Tutorial on usage of cameras to transform geometries registered in a display. This applet shows a 4d cube in the 3-sphere. The cube is projected either parallel by removing the fourth coordinate, or by stereographic projection from the projection center (1,0,0,0).

Inside the camera menu enable transformation of the currently selected geometry. Depending on the chosen space form the geometry is transformed in its own coordinate system. E.g. translation in S3 moves the geometry along a great arc in S3. As an exception, also in R3 and R4 the geometry is transformed individually but with respect to the global coordinate system of the camera. This keeps the space ball like transformation of geometries as in camera mode.

In a scene with different models, the currently selected model is transformed.

View source code:
PaTransform.java of applet,
PjTransform.java of project,
PjTransform_IP.java of project panel.

© 1997-2017 Last modified: 22.06.2017 --- www.javaview.de --- The JavaView Project