|
1 | 1 | # Mayo |
2 | 2 | Mayo is a basic 3D viewer inspired by FreeCad. |
3 | | -Its primary goal is to visualize CAD files imported/exported |
4 | | -with the [gmio](https://github.com/fougue/gmio) library. |
5 | 3 |
|
6 | 4 | Current features are : |
7 | 5 | * Multi-documents support, user can open many parts in the session |
8 | 6 | * Support of IGES/STEP/BRep formats for import/export operations |
9 | | -* Support of STL format with either [gmio](https://github.com/fougue/gmio) or OpenCascade(see the speed performance of gmio!) |
| 7 | +* Support of STEP/IGES assemblies (colors and tree structure) |
| 8 | +* Support of STL format with either OpenCascade or [gmio](https://github.com/fougue/gmio) (optional) |
| 9 | +* Perspective/orthographic 3D view projection |
| 10 | +* 3D clip planes with configurable capping |
10 | 11 | * Save image(snapshot) of the current 3D view |
| 12 | +* Editable name of STEP/IGES entities |
11 | 13 | * Editable 3D properties of the imported items, eg. material, color, display mode, ... |
| 14 | +* Area and volume properties for meshes and shapes |
| 15 | + |
| 16 | +3D viewer operations : |
| 17 | +* Rotate : mouse left + move |
| 18 | +* Pan : mouse right + move |
| 19 | +* Zoom : mouse wheel(scroll) |
| 20 | +* Window zoom : mouse wheel + move |
| 21 | +* Instant zoom : space bar |
12 | 22 |
|
13 | 23 | # Build instructions |
14 | | -Mayo requires Qt5 and OpenCascade-7.0.0. |
| 24 | +Mayo requires Qt5 and OpenCascade-7.2.0. |
15 | 25 | Although only tested with VC++/Windows it should build fine on Linux and MacOS. |
| 26 | +It uses the `CSF_OCCTIncludePath` and `CSF_OCCTLibPath` environment variables to locate |
| 27 | +OpenCascade include and lib paths. On Windows these two variables are set by the `env.bat` |
| 28 | +script which can be found within OpenCascade's base folder. You should run this batch before |
| 29 | +building mayo : |
16 | 30 | `cd .../mayo` |
17 | | -`qmake "GMIO_ROOT=path_to_gmio" "CASCADE_ROOT=path_to_opencascade"` |
18 | | -`(n)make` |
| 31 | +`qmake` |
| 32 | +`(n)make` |
| 33 | +In case you don't want to run this file you can use the `CASCADE_INC_DIR` and `CASCADE_LIB_DIR` qmake |
| 34 | +variables instead : |
| 35 | +`qmake "CASCADE_INC_DIR=occ_include_dir" "CASCADE_LIB_DIR=occ_library_dir"` |
| 36 | + |
| 37 | +To enable optional gmio library, add this option to the qmake command line: |
| 38 | +`"GMIO_ROOT=path_to_gmio"` |
19 | 39 |
|
20 | | -# Screenshots |
| 40 | +# Screencast |
21 | 41 |
|
22 | | -<img src="doc/screenshot_stl.png"/> |
23 | | -<img src="doc/screenshot_irb.png"/> |
| 42 | +<img src="doc/screencast.gif"/> |
0 commit comments