Chapter 12 ■ 3D MoDel Design anD priMitives: Using JavaFX 9 shape3D Classes
Next, use a Run ➤ Project work process and again view your primitives. As you can see, in Figure 12-13,
your primitives are being rendered using a wireframe representation and are centered in the Y dimension in
the 3D Scene.
Center the camera in the X dimension using .setTranslateX() with the following code, shown in
Figure 12-14:
camera.setTranslateX(-300);
Figure 12-13. All three primitives are now rendered in wireframe mode and are centered vertically
Figure 12-14. Add a .setTranslateX(-300) to move your primitives to the vertical (X dimension) center of your
3D Scene