Programming a Cube


Photo
Cube

This example shows that we can draw object without a .iv file.


Now Download the cube example : cube.tar.gz.

These files have been tested on Mandrake 9.1. You may have to modify the Makefile if you are running on an other operating system.


The Method

Details of the archive :
      main.cxx                                      //A classic OpenMask main file
      Cube.h                                        //The Cube
      Cube.cxx
      PsvAnimalPartner.h                            //Generate the Performer graph
      PsvAnimalPartner.cxx
      PsvPointsInputHandler.h                       //Generate red points
      PsvPointsInputHandler.cxx
      PsvLinesInputHandler.h                        //Generate green lines
      PsvLinesInputHandler.cxx
      animal.OpenMASK3                              //The OpenMask simulation tree
      settings_1Window_1Viewport.3DVis.OpenMASK3
      cube.pro                                      //Generate the Makefile
      Makefile

The Result

Compile and see the cube.
You can making it move with the keyboard's arrows.

Return to the summary