0025527: Documentation - remove redundant references to OpenCL
[occt.git] / dox / overview / overview.md
CommitLineData
f1c9c9d7 1Overview {#mainpage}
ba06f8bb 2========
3
4@tableofcontents
5
6@section OCCT_OVW_SECTION_1 Welcome
7
8Welcome to Open CASCADE Technology (OCCT), a software development platform
9providing services for 3D surface and solid modeling, CAD data exchange, and
10visualization. Most of OCCT functionality is available in the form of C++
11libraries. OCCT can be best applied in development of software dealing with 3D
12modeling (CAD), manufacturing / measuring (CAM) or numerical simulation (CAE).
13
14@htmlonly<center>@endhtmlonly
15http://www.opencascade.org
16@image html /resources/occt_logo.png
17@image latex /resources/occt_logo.png
18@htmlonly</center>@endhtmlonly
19
20@section OCCT_OVW_SECTION_2 Copyrights
21
22Open CASCADE Technology and all materials, including this documentation, is
23Copyright (c) 1999-2013 by OPEN CASCADE S.A.S. All rights reserved.
24
25@htmlonly<center>@endhtmlonly
26http://www.opencascade.com
27@image html /resources/occ_logo.png
28@image latex /resources/occ_logo.png
29@htmlonly</center>@endhtmlonly
30
31 License
32--------
33
34Open CASCADE Technology is free software; you can redistribute it and / or
35modify it under the terms of the
36@ref license_lgpl_21 "GNU Lesser General Public License (LGPL) version 2.1",
37with additional @ref occt_lgpl_exception "exception".
38
39Alternatively, Open CASCADE Technology may be used under the terms of Open
40CASCADE commercial license or contractual agreement.
41
42Note that Open CASCADE Technology is provided on an "AS IS" basis, WITHOUT
43WARRANTY OF ANY KIND. The entire risk related to any use of the OCCT code and
44materials is on you. See the @ref occt_public_license "license" text for formal
45disclaimer.
46
47 Trademark information
48----------------------
49
50You are hereby informed that all software is a property of its respective authors and is protected by
51international and domestic laws on intellectual property and trademarks.
52Should you need further information, please directly contact the authors.
53
54**CAS.CADE** and **Open CASCADE** are registered trademarks of
55OPEN CASCADE S.A.S.
56
57**Linux** is a registered trademark of Linus Torvalds.
58
59**Windows** is a registered trademark of Microsoft Corporation in the United States and other countries.
60
8bcdd697 61**Mac** and the Mac logo are trademarks of Apple Inc., registered in the U.S. and other countries.
ba06f8bb 62
63 Acknowledgements
64------------------
65
66The following parties are acknowledged for producing tools which are used within
67Open CASCADE Technology libraries or for release preparation.
68
69You are hereby informed that all rights to the software listed below belong to its respective
70authors and such software may not be freely available and/or be free of charge for any kind
71of use or purpose. We strongly recommend that you carefully read the license of these products
72and, in case you need any further information, directly contact their authors.
73
74**Qt** is a cross-platform application framework that is widely used for developing application software
75with graphical user interface (GUI). Qt is free and open source software distributed under
76the terms of the GNU Lesser General Public License. In OCCT Qt is used for programming samples.
77If you need further information on Qt, please, refer to Qt Homepage (http://qt.digia.com).
78
79**Tcl** is a high-level programming language. Tk is a graphical user interface (GUI) toolkit,
80with buttons, menus, listboxes, scrollbars, and so on. Taken together Tcl and Tk provide a solution
81to develop cross-platform graphical user interfaces with a native look and feel. Tcl/Tk is under copyright by
82Scriptics Corp., Sun Microsystems, and other companies. However, Tcl/Tk is an open source, and
83the copyright allows you to use, modify, and redistribute Tcl/Tk for any purpose, without an
84explicit license agreement and without paying any license fees or royalties.
85To use Tcl/Tk, please refer to the Licensing Terms (http://www.tcl.tk/software/tcltk/license.html).
86
87**Robert Boehne** has developed **GNU Autoconf**, **Automake** and **Libtool** scripts and makefiles
88for the Open CASCADE project http://sourceforge.net/projects/autoopencas/,
89which became an initial groundwork for the build scripts based on respective GNU tools
90(autoconf, automake and libtool) in Open CASCADE Technology version 4.0.
91These scripts are now maintained by the OPEN CASCADE company.
92
93**GL2PS** is developed by Christophe Geuzaine and others. It is optionally used by OCCT to
94export content of OpenGL scene to vector graphics formats (PS, PDF, EMF, SVG).
95The library is licensed under GL2PS LICENSE http://www.geuz.org/gl2ps/COPYING.GL2PS Version 2, November 2003.
96
97**FreeType 2** is developed by Antoine Leca, David Turner, Werner Lemberg and others.
98It is a software font engine that is designed to be small, efficient, highly customizable and
99portable while capable of producing high-quality output (glyph images). This product
100can be used in graphic libraries, display servers, font conversion tools,
101text image generation tools, and many other products.
102
103FreeType 2 is released under two open-source licenses: BSD-like FreeType License and the GPL.
104
105**Intel(R) Threading Building Blocks (TBB)** offers a rich and complete approach to expressing parallelism in a C++ program.
106It is a library that helps you to take advantage of multi-core processor performance without having to be a threading expert.
107Threading Building Blocks is not just a threads-replacement library. It represents a higher-level, task-based parallelism that
108abstracts platform details and threading mechanisms for scalability and performance.
109TBB is available under GPLv2 license with the runtime exception.
110
111Open CASCADE Technology WOK module on Windows also makes use of LGPL-licensed C routines **regexp**
112and **getopt**, taken from GNU C library.
113
114**OpenGL** is an industry standard API for 3D graphics used by OCCT for
115implementation of 3D viewer. OpenGL specification is developed by the
116Khronos group, http://www.khronos.org/opengl/. OCCT code includes header
117file *glext.h* obtained from Khronos web site.
118
18006a0f 119**VTK** - The **Visualization Toolkit (VTK)** is an open-source, freely available software system for 3D computer graphics, image processing and visualization. OCCT VIS component provides adaptation functionality for visualization of OCCT topological shapes by means of VTK library. If you need further information on VTK, please, refer to VTK Homepage http://www.vtk.org/.
ba06f8bb 120
121**Doxygen** developed by Dimitri van Heesch is open source documentation system for
122C++, C, Java, Objective-C, Python, IDL, PHP and C#. This product is used in Open CASCADE Technology
123for automatic creation of Technical Documentation from C++ header files.
124If you need further information on Doxygen, please refer to http://www.stack.nl/~dimitri/doxygen/index.html.
125
126**Graphviz** is open source graph visualization software developed by John Ellson, Emden Gansner, Yifan Hu and Arif Bilgin.
127Graph visualization is representiation of structured information as diagrams of abstract graphs and networks.
128This product is used together with Doxygen in Open CASCADE Technology for automatic creation of Technical Documentation
129(generation of dependency graphs). Current versions of Graphviz are licensed on an open source
130basis under The Eclipse Public License (EPL) (http://www.graphviz.org/License.php).
131
132**Inno Setup** is a free script-driven installation system created in CodeGear Delphi by Jordan Russell.
133In OCCT Inno Setup is used to create Installation Wizard on Windows.
134It is licensed under Inno Setup License (http://www.jrsoftware.org/files/is/license.txt).
135
136**FreeImage** is an Open Source library supporting popular graphics image formats, such as PNG, BMP, JPEG, TIFF,
137and others used by multimedia applications. This library is developed by Hervé Drolon and Floris van den Berg.
138FreeImage is easy to use, fast, multithreading safe, compatible with all 32-bit or 64-bit versions of Windows,
139and cross-platform (works both with Linux and Mac OS X). FreeImage is optionally used by OCCT to work
140with images, on conditions of the FreeImage Public License (FIPL) (http://freeimage.sourceforge.net/freeimage-license.txt).
141
142**MikTEX** is up-to-date implementation of TeX/LaTeX and related programs for Windows. It is used
143for generation of User and Developer Guides in PDF format. See http://miktex.org for information
144on this tool.
145
146Adobe Systems, Inc. provides **Adobe Reader**, which can be used to view files in Portable Document Format (PDF).
147
148@section OCCT_OVW_SECTION_3 Documentation
149
150OCCT documentation is provided in several forms:
151
152- This overview provides general description of OCCT structure, functionality, modules, and features.
153 It is available in HTML format (generated by Doxygen) and includes User and Developer Guides.
154 The sources of this documentation are contained in **dox** subdirectory of OCCT sources
155 (plain text format is used, with mixed MarkDown / Doxygen syntax mark-up).
156
157- User and Developer Guides describing in details OCCT modules and development tools are also available in
158 Adobe Portable Document Format (PDF). To read this format, you need Adobe Acrobat Reader,
159 which is a freeware and can be downloaded from the Adobe site.
160
161- Full reference documentation covering all OCCT classes generated automatically by Doxygen
162 software is provided in HTML format, in a separate package.
163 Reference documentation is presented in **Modules --> Toolkits --> Packages --> Classes**
164 logic structure with cross-references to all OCCT classes and complete in-browser search by all classes.
165
166See @ref occt_dev_guides__documentation "OCCT Documentation Guide" for details on OCCT documentation system.
167
168**Generation of HTML documentation**
169
170To generate HTML documentation from sources contained in *dox* subdirectory,
171you need to have Tcl and Doxygen 1.8.4 (or above) installed on your system.
172
173In Tcl prompt, cd to OCCT root folder and run
174
175 tclsh> source dox/start.tcl
176
177On Windows you can also run batch script **gendoc.bat**.
178
179
180**Generation of reference documentation**
181
182Reference documentation can be generated with help of WOK tool that
183is available for download from www.opencascade.org and dev.opencascade.org sites.
184
185Prerequisites:
186
187 * Doxygen version 1.8.4 or higher
188 * Graphviz version 2.28.0 or higher
189
190Run WOK (cd \<WOK_INSTALL_DIR\>/site folder):
191
192* Using WOK TCL shell:
193 > wok_tclsh.sh
194
195* Using Emacs editor:
196 > wok_emacs.sh
197
198In the WOK prompt, step into your workbench:
199
200 > wokcd <your workbench>
201
202In your workbench, use **wgendoc** command with –h argument to get information about arguments of **wgendoc** command:
203
204 > wgendoc -h
205
206then run **wgendoc** command with required arguments, for instance:
207
208 > wgendoc -output=d:/occt/doc {-m=Draw Visualization}
209
210@section OCCT_OVW_SECTION_5 Requirements
211
212Open CASCADE Technology is designed to be highly portable and is known to
9f33b387 213work on wide range of platforms (UNIX, Linux, Windows, Mac OS X, Android).
ba06f8bb 214Current version is officially certified on Windows (IA-32 and x86-64),
9f33b387 215Linux (x86-64), MAC OS X (x86-64) and Android (4.0.4 armv7) platforms.
ba06f8bb 216
217The tables below describe the recommended hardware and software configurations
218for which OCCT is certified to work.
219
220@subsection OCCT_OVW_SECTION_5_1 Linux
221
8bcdd697 222| Operating System | Mandriva 2010, CentOS 5.5, CentOS 6.3, Fedora 17, Fedora 18, Ubuntu 13.04, Debian 6.0\* |
ba06f8bb 223| ----- | ----- |
224| Minimum memory | 512 MB, 1 GB recommended |
225| Free disk space (complete installation) | 600 MB approx. |
226| Video card | See \ref overview_req_graphics |
227| Graphic library | OpenGL 1.1+ (OpenGL 2.1+ is recommended)|
228| C++ | GNU gcc 4.0. - 4.7.3. |
8bcdd697 229| TCL (for testing tools) | Tcl/Tk 8.5 or 8.6 http://www.tcl.tk/software/tcltk/download.html |
18006a0f 230| Qt (for demonstration tools) | Qt 4.8.6 http://qt-project.org/downloads |
231| Freetype (for text rendering) | freetype-2.5.3 http://sourceforge.net/projects/freetype/files/ |
232| FreeImage (optional, for support of common 2D graphic formats) | FreeImage 3.16.0 http://sourceforge.net/projects/freeimage/files |
ba06f8bb 233| gl2ps (optional, for export contents of OCCT viewer to vector graphic files) | gl2ps-1.3.8 http://geuz.org/gl2ps/ |
234| Intel TBB (optional, for multithreaded algorithms) | TBB 3.x or 4.x http://www.threadingbuildingblocks.org/ |
18006a0f 235| VTK (for VTK Integration Services | VTK 6.1.0 http://www.vtk.org/VTK/resources/software.html |
ba06f8bb 236
8bcdd697 237* Debian 6.0 64 bit is a platform used for regular testing of contributions
ba06f8bb 238
239@subsection OCCT_OVW_SECTION_5_2 Windows
240
8bcdd697 241| Operating System | Windows 8.1 / 7 SP1 / Vista SP2 / XP SP3 |
ba06f8bb 242| ----- | ----- |
243| Minimum memory | 512 MB, 1 GB recommended |
244| Free disk space (complete installation) | 600 MB approx. |
245| Video card | See \ref overview_req_graphics |
246| Graphic library | OpenGL 1.1+ (OpenGL 2.1+ is recommended)|
8bcdd697 247| C++ | Microsoft Visual Studio: 2005 SP1, 2008 SP1, 2010 SP1 \*, 2012 Update 3, 2013 <br>Intel C++ Composer XE 2013 SP1 |
18006a0f 248| TCL (for testing tools) | Tcl/Tk 8.5 or 8.6 http://www.tcl.tk/software/tcltk/download.html |
249| Qt (for demonstration tools) | Qt 4.8.6 http://qt-project.org/downloads |
250| Freetype (OCCT Text rendering) | freetype-2.5.3 http://sourceforge.net/projects/freetype/files/ |
251| FreeImage (Support of common graphic formats) | FreeImage 3.16.0 http://sourceforge.net/projects/freeimage/files |
ba06f8bb 252| gl2ps (Export contents of OCCT viewer to vector graphic file) | gl2ps-1.3.8 http://geuz.org/gl2ps/ |
253| Intel TBB (optional, for multithreaded algorithms) | TBB 3.x or 4.x http://www.threadingbuildingblocks.org/ |
18006a0f 254| VTK (for VTK Integration Services | VTK 6.1.0 http://www.vtk.org/VTK/resources/software.html |
ba06f8bb 255
f1c9c9d7 256* VC++ 10 32-bit is used for certification of contributions and for building
ba06f8bb 257 binary package of official release of OCCT on Windows.
258
259@subsection OCCT_OVW_SECTION_5_3 MAC OS X
260
8bcdd697 261| Operating System | OS X 10.10 Yosemite / 10.9 Mavericks / 10.8 Mountain Lion / 10.7 Lion / 10.6.8 Snow Leopard |
ba06f8bb 262| ----- | ----- |
263| Minimum memory | 512 MB, 1 GB recommended |
264| Free disk space (complete installation) | 600 MB approx. |
ba06f8bb 265| C++ | XCode 3.2 or newer (4.x is recommended) |
8bcdd697 266| TCL (for testing tools) | Tcl/Tk 8.5 or 8.6 http://www.tcl.tk/software/tcltk/download.html |
18006a0f 267| Qt (for demonstration tools) | Qt 4.8.6 http://qt-project.org/downloads |
268| Freetype (OCCT Text rendering) | freetype-2.5.3 http://sourceforge.net/projects/freetype/files/ |
269| FreeImage (Support of common graphic formats) | FreeImage 3.16.0 http://sourceforge.net/projects/freeimage/files |
ba06f8bb 270| gl2ps (Export contents of OCCT viewer to vector graphic file) | gl2ps-1.3.8 http://geuz.org/gl2ps/ |
271| Intel TBB (optional, for multithreaded algorithms) | TBB 3.x or 4.x http://www.threadingbuildingblocks.org/ |
ba06f8bb 272
9f33b387 273@subsection OCCT_OVW_SECTION_5_4 Android
274
275| Operating System | Android 4.0.4+ |
276| ----- | ----- |
8bcdd697 277| Minimum memory | 512 MB, 1 GB recommended |
278| C++ | NDK r10, GNU gcc 4.8 or newer |
279| Qt (for demonstration tools) | Qt 5.3.2 http://qt-project.org/downloads |
18006a0f 280| Freetype (for text rendering) | freetype-2.5.3 http://sourceforge.net/projects/freetype/files/ |
9f33b387 281
ba06f8bb 282@subsection overview_req_graphics Graphic cards
283
8bcdd697 284On desktop, 3D viewer requires graphic card or software implementation supporting OpenGL 1.1 or above. OpenGL 2.1+ is highly recommended.
285Ray tracing requires OpenGL 4.0+ or OpenGL 3.1+ with GL_ARB_texture_buffer_object_rgb32 extension. Textures within ray tracing will be available only when GL_ARB_bindless_texture extension is provided by driver.
286
287On mobile platforms, OpenGL ES 2.0+ is required for 3D viewer. The ray tracing is not yet available on mobile platforms.
288Some old hardware might be unable to execute complex GLSL programs (e.g. with high number of light sources, clipping planes).
ba06f8bb 289
290The following table lists graphic cards tested to work with OCCT.
291
8bcdd697 292| Graphic card | Driver | OS | OpenGL (fixed pipeline) | OpenGL (shaders) | OpenGL (ray tracing) |
ba06f8bb 293| ---- | ---- | ---- | :----: | :----: | :----: |
8bcdd697 294| NVIDIA GeForce GTX 650 | Driver 340.52, OpenGL 4.4 | Windows 7 64 bit | OK | OK | OK |
295| AMD/ATI RadeOn HD 7870 | Driver 14.100, OpenGL 4.4 | Windows 7 64-bit | OK | OK | OK |
296| Intel(R) HD Graphics 2500 | Driver 10.18.10.3621, OpenGL 4.0 | Windows 7 64 bit | OK | OK | limited (no textures) |
297| RadeOn 9600 | OpenGL 2.1.8454 | Windows XP 32-bit | OK | bad | unsupported by hardware |
298| NVIDIA GeForce 6600 GT | OpenGL 2.1 | Windows XP 32-bit | OK | OK | unsupported by hardware |
299| NVIDIA GeForce 320 | N/A | Mac OS X 10.6 / OS X 10.10 | OK | OK | not yet supported by OCCT |
300| Apple software OpenGL | N/A | Mac OS X 10.6 / OS X 10.10 | OK | OK | N/A |
301| Mesa 10.2.4 \* | "Gallium 0.4 on llvmpipe (LLVM 3.4, 256 bits)" OpenGL 3.0 | Windows 7 64 bit | OK | OK | unsupported by software |
ba06f8bb 302
303* Mesa implementation of OpenGL is used for certification testing of OCCT
304
305@section OCCT_OVW_SECTION_4 Installation
306
307In most cases you need to rebuild OCCT on your platform (OS, compiler) before
308using it in your project, to ensure binary compatibility.
309See @ref occt_dev_guides__building for instructions on
310building OCCT from sources on supported platforms.
311
312@subsection OCCT_OVW_SECTION_4_1 Using Windows installer
313
314On Windows Open CASCADE Technology can be installed with binaries precompiled by
18006a0f 315Visual C++ 2010 with installation procedure.
ba06f8bb 316
317**Recommendation:**
318
319If you have a previous version of OCCT installed on your station,
320and you do not plan to use it along with the new version, you might want to uninstall
321the previous version (using Control Panel, Add/Remove Programs) before
322the installation of this new version, to avoid possible problems
323(conflict of system variables, paths, etc).
324
325**Attention:** For full installation OCCT requires approximately 650 Mb of disk space,
326but during the installation process you will need 1,2 Gb of free disk space.
327
328OCCT installation with reference documentation requires 1,4 Gb on disk.
329
330 * Download the OCCT installer from OPEN CASCADE web site using the link. you have been provided
331 * Launch the installer and follow the instructions.
332
333The includes and binaries of third-party libraries necessary for building and launching
334OCCT are included into binary distribution (built with Visual C++ 2008).
335When the installation is complete, you will find the directories for 3rd party products
336(some might be absent in case of custom installation) and the main **OCCT** directory:
337
338@image html /overview/images/overview_3rdparty.png
339@image latex /overview/images/overview_3rdparty.png
340
18006a0f 341The contents of the OCCT-6.8.0 directory (called further "OCCT root", or $CASROOT) are as follows:
ba06f8bb 342
343@image html /overview/images/overview_installation.png "The directory tree"
344@image latex /overview/images/overview_installation.png "The directory tree"
345
346 * **adm** This folder contains administration files, which allow rebuilding OCCT;
347 * **adm/cmake** This folder contains files of CMake building procedure;
18006a0f 348 * **adm/msvc** This folder contains Visual Studio projects for Visual C++ 2005, 2008, 2010, 2012 and 2013 which allow rebuilding OCCT under Windows platform in 32 and 64-bit mode;
ba06f8bb 349 * **data** This folder contains CAD files in different formats, which can be used to test the OCCT functionality;
350 * **doc** This folder contains OCCT documentation in HTML and PDF format;
351 * **dox** This folder contains sources of OCCT documentation in plain text (MarkDown) format;
352 * **drv** This folder contains source files generated by WOK (private header files and instantiations of generic classes);
353 * **inc** This folder contains all OCCT header files;
354 * **samples** This folder contains sample applications.
355 * **src** This folder contains OCCT source files. They are organized in folders, one per development unit;
356 * **tests** This folder contains scripts for OCCT testing.
18006a0f 357 * **win32/vc10** This folder contains executable and library files built in optimize mode for Windows platform by Visual C++ 2010;
ba06f8bb 358
359@section OCCT_OVW_SECTION_4_2 Environment Variables
360
361To run any Open CASCADE Technology application you need to set the environment variables.
362
363### On Windows
364
365You can define the environment variables with env.bat script located in the
366$CASROOT folder. This script accepts two arguments to be used:
367the version of Visual Studio (vc8 - vc12) and the architecture (win32 or win64).
368
369The additional environment settings necessary for compiling OCCT libraries and samples
370by Microsoft Visual Studio can be set using script custom.bat located in the same folder.
371You might need to edit this script to correct the paths to third-party libraries
372if they are installed on your system in a non-default location.
373
374Script msvc.bat can be used with the same arguments for immediate launch of Visual Studio for (re)compiling OCCT.
375
376### On Unix
377
378
379 If OCCT was built by Code::Blocks, you can define the environment variables with env_cbp.sh or custom_cbp.sh script.
380
381 If OCCT was built by Automake, you can define the environment variables with env_amk.sh or custom_amk.sh script.
382
383The scripts are located in the OCCT root folder.
384
385
386### Description of system variables:
387
ba06f8bb 388 * **CASROOT** is used to define the root directory of Open CASCADE Technology;
389 * **PATH** is required to define the path to OCCT binaries and 3rdparty folder;
390 * **LD_LIBRARY_PATH** is required to define the path to OCCT libraries (on UNIX platforms only);
391 * **MMGT_OPT** (optional) if set to 1, the memory manager performs optimizations as described below; if set to 2,
392 Intel (R) TBB optimized memory manager is used; if 0 (default), every memory block is allocated
393 in C memory heap directly (via malloc() and free() functions).
7277133a 394 In the latter case, all other options except MMGT_CLEAR are ignored;
ba06f8bb 395 * **MMGT_CLEAR** (optional) if set to 1 (default), every allocated memory block is cleared by zeros;
396 if set to 0, memory block is returned as it is;
397 * **MMGT_CELLSIZE** (optional) defines the maximal size of blocks allocated in large pools of memory. Default is 200;
398 * **MMGT_NBPAGES** (optional) defines the size of memory chunks allocated for small blocks in pages
399 (operating-system dependent). Default is 10000;
400 * **MMGT_THRESHOLD** (optional) defines the maximal size of blocks that are recycled internally
401 instead of being returned to the heap. Default is 40000;
402 * **MMGT_MMAP** (optional) when set to 1 (default), large memory blocks are allocated using
403 memory mapping functions of the operating system; if set to 0,
404 they will be allocated in the C heap by malloc();
405 * **CSF_LANGUAGE** is required to define the default language of messages;
406 * **CSF_DEBUG** (optional, Windows only): if defined then a diagnostic message is displayed in case of an exception;
407 * **CSF_DEBUG_BOP** (optional): if defined then it should specify directory where diagnostic data on problems occured in Boolean operations will be saved;
408 * **CSF_MDTVTexturesDirectory** defines the directory for available textures when using texture mapping;
409 * **CSF_ShadersDirectory** defines the directory for GLSL programs (required for advanced rendering techniques and custom shaders);
410 * **CSF_UnitsDefinition** and **CSF_UnitsLexicon** should define paths to resource files Lexi_Expr.dat and Units.dat, respectively, required for support of measurement units;
411 * **CSF_SHMessage** is required in order to define the path to the messages file for *ShapeHealing*;
412 * **CSF_XSMessage** is required in order to define the path to the messages file for **STEP** and **IGES** translators;
413 * **CSF_StandardDefaults** and **CSF_PluginDefaults** are required in order to maintain CASCADE Persistence mechanism to make possible any open/save operations with OCAF documents;
414 * **CSF_StandardLiteDefaults** is required in order to maintain *OCCT Persistence mechanism* to make possible any open/save operations with Lite OCAF documents;
415 * **CSF_XCAFDefaults** any open/save operations for **XDE** documents;
416 * **CSF_IGESDefaults** and **CSF_STEPDefaults** are required for **IGES** and **STEP** translators correspondingly in order to define the path to the resource files;
417 * **CSF_XmlOcafResource** is required in order to set the path to **XSD** resources, which defines XML grammar.
418 * **CSF_MIGRATION_TYPES** is required in order to read documents that contain old data types, such as *TDataStd_Shape*;
419 * **TCLLIBPATH**, **TCL_LIBRARY**, **TK_LIBRARY** and **TIX_LIBRARY** are required to allow work with **DRAW** and **WOK**.
420
421@section OCCT_OVW_SECTION_7 Getting Started
422
423@subsection OCCT_OVW_SECTION_7_1 Draw Test Harness
424
425Draw is a command interpreter based on TCL and a graphical system used for testing and demonstrating OCCT modeling libraries.
426
427Draw can be used interactively to create, display and modify objects such as curves, surfaces and topological shapes.
428
429@image html /overview/images/overview_draw.png
430@image latex /overview/images/overview_draw.png
431
432Scripts can be written to customize Draw and perform tests.
433New types of objects and new commands can be added using C++ programming language.
434
435Draw contains:
436
437 * A command interpreter based on TCL command language.
438 * A 2D an 3D graphic viewer with support of operations such as zoom, pan, rotation and full-screen views.
439 * An optional set of geometric commands to create and modify curves and surfaces and to use OCCT geometry algorithms.
440 * A set of topological commands to create and modify BRep shapes and to use OCCT topology algorithms.
441 * A set of graphic commands for view and display operations including Mesh Visualization Service.
442 * A set of Application framework commands for handling of files and attributes.
443 * A set of Data Exchange commands for translation of files from various formats (IGES,STEP) into OCCT shapes.
444 * A set of Shape Healing commands: check of overlapping edges, approximation of a shape to BSpline, etc.
445
446You can add new custom test harness commands to Draw in order to test
447or demonstrate a new functionality, which you are developing.
448
449Currently DRAW Test Harness is a single executable called DRAWEXE.
450
451Commands grouped in toolkits can be loaded at run-time thereby implementing dynamically loaded plug-ins.
452Thus you can work only with the commands that suit your needs adding
453the commands dynamically without leaving the Test Harness session.
454
455Declaration of available plug-ins is done through special resource file(s).
456The pload command loads the plug-in in accordance with
457the specified resource file and activates the commands implemented in the plug-in.
458
459The whole process of using the plug-in mechanism as well as the instructions for extending Test Harness is described in the @ref occt_user_guides__test_harness.
460
461Draw Test Harness provides an environment for OCCT automated testing system.
462Please, consult its @ref occt_dev_guides__tests "Automated Testing System" for details.
463
464Remarks:
465
466* The DRAWEXE executable is delivered with the installation procedure on Windows platform only.
467* To start it, launch DRAWEXE executable from Open CASCADE Technology/Draw Test Harness item of the Start\\Programs menu.
468
469@subsection OCCT_OVW_SECTION_7_2 Experimenting with Draw Test Harness
470
471 Running Draw
472------------
473
474**On Linux:**
475
4761. If OCCT was built by Code::Blocks use <i>$CASROOT/draw_cbp.sh</i> file to launch *DRAWEXE* executable;
4772. If OCCT was built by Automake use <i>$CASROOT/draw_amk.sh</i> file to launch *DRAWEXE* executable;
478
479Draw[1]> prompt appears in the command window
480
481Type *pload ALL*
482
483**On Windows:**
484
485Launch Draw executable from Open CASCADE Technology\\Test Harness\\Draw Test Harness
486item of the Start\\Programs menu or Use <i>$CASROOT\\draw.bat</i> file to launch *DRAWEXE* executable.
487
488Draw[1]> prompt appears in the command window
489
490Type pload ALL
491
492**Creating your first geometric objects**
493
4941. In the command window, type *axo* to create an axonometric view
4952. 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.
4963. Type *fit* to fill the viewer with the cube
4974. 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
498
499**Manipulating the view**
500
5011. Type *clear* to erase the view
5022. Type *donly c* to display the cylinder only
5033. Type *donly b* to display the cube only
5044. Type *hlr hlr b* to display the cube in the hidden line removal mode
505
506**Running demonstration files**
507
5081. Type *cd ../..* to return to the root directory
5092. Type *cd samples/tcl* to reach the *DrawResources* directory
5103. Type *source \<demo_file\>* to run the demonstration file provided with Open CASCADE. The following demonstration files are available:
511 * DataExchangeDemo.tcl: demonstrates sample sequence of operations with writing and reading IGES file
512 * ModelingDemo.tcl: demonstrates creation of simple shape and displaying it in HLR mode
513 * VisualizationDemo.tcl: demonstrates use of 3d viewer
a347ef35 514 * cad.tcl: creates solid shape looking like abbreviation "CAD"
ba06f8bb 515 * bottle.tcl: creates bottle as in OCCT Tutorial
516 * drill.tcl: creates twist drill bit shape
a347ef35 517 * cutter.tcl: creates milling cutter shape
518 * xde.tcl: demonstrates creation of simple assembly in XDE
519 * materials.tcl: demonstrates visual properties of materials supported by 3d viewer
ba06f8bb 520 * raytrace.tcl: demonstrates use of ray tracing display in 3d viewer
a347ef35 521 * dimensions.tcl: demonstrates use of dimensions, clipping, and capping in 3d viewer
ba06f8bb 522
523**Getting Help**
524
5251. Type *help* to see all available commands
5262. Type *help \<command_name\>* to find out the arguments for a given command
527
528@subsection OCCT_OVW_SECTION_7_3 Programming Samples
529
530@subsubsection OCCT_OVW_SECTION_7_3_1 MFC
531
532Visual C++ programming samples containing 10 Visual C++ projects
533illustrating how to use a particular module or functionality.
534
535The list of MFC samples:
536
537 * Geometry
538 * Modeling
539 * Viewer2d
540 * Viewer3d
541 * ImportExport
542 * Ocaf
543 * Triangulation
544 * HLR
545 * Animation
546 * Convert
547
548@image html /overview/images/overview_mvc.png
549@image latex /overview/images/overview_mvc.png
550
551**Remarks:**
552
553 * MFC samples are available only on Windows platform;
554 * To start a sample use Open CASCADE Technology\\Samples\\Mfc\\ item of the Start\\Programs menu;
555 * Read carefully readme.txt to learn about launching and compilation options.
556
557See \subpage samples_mfc_standard "Readme" for details.
558
559@subsubsection OCCT_OVW_SECTION_7_3_2 Qt
560
561OCCT contains three samples based on Qt application framework
562
563 Import Export
564-------------
565
566 Import Export programming sample contains 3D Viewer and Import / Export functionality.
567
568@image html /overview/images/overview_qt.png
569@image latex /overview/images/overview_qt.png
570
571 Tutorial
572---------
573
574The Qt programming tutorial teaches how to use Open CASCADE Technology services to model a 3D object.
575The purpose of the tutorial is not to explain all OCCT classes but
576to help start thinking in terms of the Open CASCADE Technology.
577
578This tutorial assumes that the user has experience in using and setting up C++.
579From the viewpoint of programming, Open CASCADE Technology is designed
580to enhance user's C++ tools with high performance modeling classes, methods and functions.
581The combination of these resources allows creating substantial applications.
582
583**See also:** @ref occt__tutorial "OCCT Tutorial"
584
585 Voxel
586------
587
588This is a demonstration application showing OCCT voxel models. It also includes a set of non-regression tests and other commands for testing this functionality (accessible only through TEST pre-processor definition).
589
590**See also:** <a href="occt_voxels_wp.html">Voxels User's guide</a>
591
592**Remarks:**
593
594 * Qt samples are available on all supported platforms;
595 * To start a sample on Windows use Open CASCADE Technology\\Samples\\Qt\\ item of the Start\\Programs menu.
596
597@subsubsection OCCT_OVW_SECTION_7_3_3 C#
598
599C# sample demonstrates integration of OCCT 3D Viewer and Import / Export functionality into .NET applications (using Windows Forms and WPF front ends).
600
601@image html /overview/images/overview_c__ie.png
602@image latex /overview/images/overview_c__ie.png
603
604Import:
605
606 * BRep
607 * Iges
608 * Step
609
610Export:
611
612 * Brep
613 * Iges
614 * Step
615 * Stl
616 * Vrml
617
15534713 618See \subpage samples_csharp_occt "Readme" for details.
619
18006a0f 620There is also another C# example with the same functionality, which demonstrates the integration of Direct3D Viewer into .NET applications using WPF front end.
15534713 621
622See \subpage samples_csharp_direct3d "Readme" for details.
ba06f8bb 623
80eb9670 624@subsubsection OCCT_OVW_SECTION_7_3_4 Android
625
626There are two samples are representing usage OCCT framework on Android mobile platform. They represent an OCCT-based 3D-viewer with CAD import support in formats BREP, STEP and IGES: jniviewer (java) and AndroidQt (qt+qml)
627
628jniviewer
629@image html /overview/images/samples_java_android_occt.jpg
630@image latex /overview/images/samples_java_android_occt.jpg
631Java - See \subpage samples_java_android_occt "Readme" for details.
632
633AndroidQt
634@image html /overview/images/samples_qml_android_occt.jpg
635@image latex /overview/images/samples_qml_android_occt.jpg
636Qt - See \subpage samples_qml_android_occt "Readme" for details.