Instantiate the respective class of the required 3D shape. To create a 3-Dimensional shape, you need to − The class named Shape3D is the base class of all the 3-Dimensional shapes in JavaFX. These include a Cylinder, Sphere and a Box.Įach of the above mentioned 3D shape is represented by a class and all these classes belong to the package. In general, a 3D shape is a geometrical figure that can be drawn on the XYZ plane. In addition to these 2D shapes, we can draw several other 3D shapes as well using JavaFX.
If you are experiencing difficulties using LiveGraphics3D applets in MathWorld, please consult the LiveGraphics3D FAQ.In the earlier chapters, we have seen how to draw 2D shapes on an XY plane.
Pressing M ETA (A LT) key (or right mouse button) plus horizontal draggingĪdditional interface for animated graphics.Īdditional details and documentation are given on the LiveGraphics3D Homepage. Several additional interactions are supported for animations. However, on some systems, it is mapped to the right mouse button. The M ETA key is usually mapped to the A LTERNATE or C OMMAND key. Toggling between single picture, stereo pictures for diverge fusing, and stereo pictures for cross fusing Printing parameter settings to the Java console ( a.k.a. Pressing M ETA (A LT) key (or right mouse button) plus vertical dragging Pressing C ONTROL key plus horizontal dragging Pressing C ONTROL key plus vertical dragging Rotating about an axis perpendicular to the picture Pressing S HIFT key plus horizontal dragging Pressing S HIFT key plus vertical dragging Releasing left mouse button while dragging Other commands recognized by LiveGraphics3D are summarized in the following tables. Martin Kraus has written a Mathematica package LiveGraphics3D.m that contains routines to do preprocessing for many of the 3D graphics included in MathWorld. In some cases, preprocessing of Mathematica graphics is necessary to put them in a form capable of being rendered correctly by LiveGraphics3D. Therefore, only a single animation may be active at any given time. Such animations are rotatable, but they are active only when the mouse is moved within a given animation frame.
Note that the presence of embedded GIFs within applet tags also allows non-Java-capable browsers to view pages without missing "live" images.ĢD and 3D animations may also be rendered using LiveGraphics3D. This will bring up the pages with static GIF images instead of applets, and these should print fine. If you experience this problem, turn off Java in your browser's Preferences settings and S HIFT-Reload the page. However, under some operating system/browser/Java combinations, a blank space is obtained when printing where the image should be.
The images depicted in LiveGraphics3D applets can be printed directly from most web browsers ( e.g., Netscape 4.6 under Mac OS, Netscape 4.6 under Linux RedHat 6.0). You must also activate Java in the Preferences or Options menu of your web browser.Ī LiveGraphics3D solid can be rotated by dragging it with the mouse and can be continuously spun (while the mouse pointer is located in the applet frame) by dragging and letting up the mouse button in the middle of a drag. To use LiveGraphics3D, you must use a web browser supporting Java 1.1 ( e.g., Netscape Communicator 4.x, Mozilla, IE 4.x/5.x, iCab, OmniWeb). For a complete listing of all applets in MathWorld, see the index of interactive illustrations. LiveGraphics3D allows 3D solids created by Mathematica to be rotated interactively right in the middle of an HTML page. LiveGraphics3D is a Java applet written by Martin Kraus and licensed for commercial use by Wolfram Research, Inc.