Experimenting with Draw Test Harness

Running Draw

under UNIX:

- Use $CASROOT/env.csh file to set the all necessary system variables;

- Launch the DRAWEXE executable from $CASROOT /"Station:sun or linux"/bin folder.

Draw[1]> prompt appears in the command window

- Type pload ALL

under Windows:

- The all system variables are set during installation of Open CASCADE;

- Launch Draw executable from OCC\Test Harness\Draw Test Harness item of the Programs menu.

Draw[1]> prompt appears in the command window

- Type pload ALL

Creating your first geometric objects

1. In the command window, type axo to create an axonometric view

2. Type box b -10 -10 -10 20 20 20 to create a cube b of size 20, parallel to the X Y Z axis and centered on the origin. The cube will be displayed in the axonometric view in wireframe mode

3. Type fit to fill the viewer with the cube

4. Type pcylinder c 2 30 to create a cylinder c of radius 2 and height 30.The cylinder will be displayed in addition to the cube

Manipulating the view

1. Type clear to erase the view

2. Type donly c to display the cylinder only

3. Type donly b to display the cube only

4. Type hlr hlr b to display the cube in the hidden line removal mode

Running demonstration files

1. Type cd ../.. to return to the root directory

2. Type cd src/DrawResources to reach the DrawResources directory

3. Type source "Available Demo File" to run the demonstration provided with Open CASCADE

4. The following demonstration files are available:

- DataExchangeDemo.tcl

- ModelingDemo.tcl

- OCAFDemo.tcl

- VisualizationDemo.tcl

Getting Help

1. Type help to see all available commands

2. Type help command-name to find out the arguments for a given command

See also

Draw Test Harness