Draw Test Harness
Draw is a command interpreter based on TCL and a graphical system used for testing and demonstrating OCCT modeling libraries.
Draw can be used interactively to create, display and modify objects such as curves, surfaces and topological shapes.
Scripts can be written to customize Draw and perform tests. New types of objects and new commands can be added using C++ programming language.
Draw contains:
A command interpreter based on TCL command language.
A 2D an 3D graphic viewer with support of operations such as zoom, pan, rotation and full-screen views.
An optional set of geometric commands to create and modify curves and surfaces and to use OCCT geometry algorithms.
A set of topological commands to create and modify BRep shapes and to use OCCT topology algorithms.
A set of graphic commands for view and display operations including Mesh Visualization Service.
A set of Application framework commands for handling of files and attributes.
A set of Data Exchange commands for translation of files from various formats (IGES,STEP) into OCCT shapes.
A set of Shape Healing commands: check of overlapping edges, approximation of a shape to BSpline, etc.
You can add new custom test harness commands to Draw in order to test or demonstrate a new functionality, which you are developing.
Currently DRAW Test Harness is a single executable called DRAWEXE.
Commands grouped in toolkits can be loaded at run-time thereby implementing dynamically loaded plug-ins. Thus you can work only with the commands that suit your needs adding the commands dynamically without leaving the Test Harness session.
Declaration of available plug-ins is done through special resource file(s). The pload command loads the plug-in in accordance with the specified resource file and activates the commands implemented in the plug-in.
The whole process of using the plug-in mechanism as well as the instructions for extending Test Harness is described in the User's Guide.
Remarks:
The DRAWEXE executable is delivered with the installation procedure on Windows platform only.
To start it, launch DRAWEXE executable from Open CASCADE Technology\Test Harness\Draw Test Harness item of the Start\Programs menu.