Skip to content

gkv311/occt-examples

Repository files navigation

Open CASCADE Technology - live Draw Harness examples

About this project

Open CASCADE Technology logo

This is an experimental work-in-progress repository for a live DEMO of Draw Harness started within the browser. The DEMO itself could be found here:
https://draw.sview.ru

The project provides a set of interactive Draw Harness samples demonstrating usage and features of Open CASCADE Technology (or OCCT) without installation in the system and executed directly by the browser.

Project consists of:

  • Draw Harness application built as WebAssembly module, based on OCCT source code with statically linked MODELING, XDE, and VISUALIZATION plugins;
  • Console interface based on xterm.js executing Draw Harness commands and Tcl scripts;
  • Single WebGL canvas for OCCT 3D Viewer integration;

The project depends on Draw Harness binaries provided by:
https://github.com/gkv311/occt-draw

About Draw Harness

Draw Harness is an open-source Tcl command interpreter used to test and demonstrate Open CASCADE Technology (OCCT) modeling libraries.

Draw Harness provides a set of manually written Tcl commands utilizing OCCT functionality, providing a natural environment for interactive input.

Draw Harness allows:

  • Performing modeling operations from OCCT.
  • Performing import/export operations into STEP/IGES/glTF/STL file formats.
  • Displaying and interacting with models in 3D Viewer, as well as making screenshots.
  • Learning, evaluating, prototyping algorithms interactively - through command line input or available Tcl samples.
  • Scripting operations using Tcl language for reuse in interactive and non-interactive modes.
  • Automated non-regression testing of algorithms.
  • Extending with own commands through writing Draw Plugins.

Draw Harness can be used on a wide range of platforms, including Windows, macOS, Linux, and even directly in the browser as WebAssembly module (this project is a live DEMO of the latter)!

See also the Draw Harness User Guide.

About Open CASCADE Technology

Open CASCADE Technology (OCCT) is an open source full-scale 3D geometry library. Striving to be one of the best free cad software kernels, OCCT is widely used for the development of specialized programs dealing with the following engineering and mechanical domains: 3D modeling (CAD), manufacturing (CAM), numerical simulation (CAE), measurement equipment (CMM) and quality control (CAQ). Since its publication in 1999 as an open source CAD software kernel, OCCT has been successfully used in numerous projects ranging from building and construction to aerospace and automotive.

Please visit official site for more information:
https://dev.opencascade.org