import graphics3d.Graphics3DFramework; import Graphics3D; // Function called at the start of the program void onStart ( int rendererID ) { // Optional: Set window size and background color setWindowSize( 800, 600 ); setBackgroundColor( 0, 0, 0, 255 ); // Create and place axis model int axis = newAxisModel( 3.0, 3.0, 3.0 ); mountModel( axis, rendererID ); // Create and place first cylinder int cylinder1 = newCylinderModel( 1.0, 1.0, 2.0, 20, 1 ); setModelColor( cylinder1, 255, 0, 0, 255 ); // red mountModel( cylinder1, rendererID ); // Create and place second cylinder int cylinder2 = newCylinderModel( 1.0, 1.0, 2.0, 20, 1 ); setModelColor( cylinder2, 0, 0, 255, 255 ); // blue mountModel( cylinder2, rendererID ); // Mirror-flip the second cylinder in the Z direction mirrorModel( cylinder2, false, false, true ); reverseModel( cylinder2 ); // correct surface orientation }