The TiGL Viewer is a 3D viewer for CPACS geometries. In addition, it also allows opening standard CAD file formats like IGES, STEP and BREP. Historically, TiGL Viewer was created as a TiGL debugging tool to visualize the modeled geometries.
The TiGL Viewer showing a CPACS model of the D 150 aircraft
Features of TiGL Viewer
- 3D Visualization CPACS, STEP, IGES, BREP, and STL files
- Creation of screen shots
- Conversion of geometries into standard CAD file formats
- Conversion into mesh formats such as STL, VTK, and COLLADA (for Blender rendering)
- A powerful scripting console that allows automatizing typical workflows, such as creating screen shots or making some debug plots.
- CPACS specific:
- Display single CPACS entities such as wings, fuselages, profiles and guide curves
- Compute and export a trimmed aircraft configuration
- Compute discrete points on wings/fuselages using TiGL functions
Navigation in the 3D view
The most often used navigation functions are included in the tool bar
Here, one can use
- "Select shapes" to select some parts ("shapes") of the geometry with the mouse.
- "Pan view" to translate the whole geometry with the mouse
- "Rotate view" to rotate the view point with the mouse
- "Zoom" to zoom in or out with the mouse
- "Fit to view" to fit all objects into the current view
- "Top" to see the top view of the geometry
- "Side" to see the side view of the geometry
- "Front" to see the front view of the geometry
- "Axonometric" to see the axonometric view of the geometry
- "Reflection plot" to visualize C1 and C2 surface discontinuities
More functions can be found in the "View" menu.
Keyboard shortcuts
All actions in the TiGL Viewer can be accessed using the application menu or the context menu inside the 3D view. To improve usability, some the actions can also be executed with keyboard shortcuts. The most practical ones are:
Basic actions
Keys | Action |
Ctrl+O | open file |
Ctrl+S | save file |
Ctrl+Q | close program |
Change view
Keys | Action |
1 | Front view |
2 | Back view |
3 | Top view |
4 | Bottom view |
5 | Left view |
6 | Right view |
Ctrl-D | Axonometric view |
+ | Zoom in |
- | Zoom out |
Ctrl-W | Toggle display of wireframe |
Alt-C | Toggle display of console |
Ctrl-E | Enable zoom mode |
Ctrl-T | Enable pan view mode |
Ctrl-R | Enable rotate view mode |
Ctrl-A | Fits all objects into view |
Ctrl-G | Toggle display of grid |
The Settings
The settings dialog allows some customization of the visualization of objects and the export of meshes. It is opened by clicking on File -> Settings.
Display Settings
- Tesselation accuracy: the accuracy how the mathematical geometries are converted to triangles. The higher this setting is, the more triangles are created. High values typical require more computation time. Default: 5.
- Triangulation accuracy: similar to tesselation accuracy, but only used for export of triangular meshes (VTK, COLLADA, STL). Default: 5.
- Background color: base color of the 3D viewer's background gradient.
Debugging
- Enumerate faces: If enabled, a number will be displayed next to each face in the viewer. This helps to understand the order of face creation. Mostly useful for TiGL developers. Default: off
- Debug boolean operations: Boolean operations tend to be quite unstable due to the problems in the OpenCASCADE kernel. To improve the debugging of such operations, TiGL Viewer can export intermediate geometries as BREP files to disk. These files can again be displayed in the TiGL Viewer. In case of an error, these files should be send to the TiGL developers. The files are placed inside the current working directory. Default: off
Graphics Customization
The rendering off all geometrical objects can be be customized to some extends. In order modify some rendered objects, select the objects of interest and press the right mouse button inside the 3D view. The following actions are available:
- Setting the material (which affects the shading behavior)
- Setting the object color and transparency
- Toggle between wireframe and shading rendering
Different shading settings (textured, plastic blue, wireframe)
Mobile platforms
A simplified version of the TiGL Viewer is also available for mobile devices based on Android. It can be downloaded from the Google play store.
The TiGL Viewer App for Android