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
In the command window, type axo to create an axonometric view
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
Type fit to fill the viewer with the cube
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
Type clear to erase the view
Type donly c to display the cylinder only
Type donly b to display the cube only
Type hlr hlr b to display the cube in the hidden line removal mode
Running demonstration files
Type cd ../.. to return to the root directory
Type cd src/DrawResources to reach the DrawResources directory
Type source "Available Demo File" to run the demonstration provided with Open CASCADE
The following demonstration files are available:
DataExchangeDemo.tcl
ModelingDemo.tcl
OCAFDemo.tcl
VisualizationDemo.tcl
Getting Help
Type help to see all available commands
Type help command-name to find out the arguments for a given command
See also