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