- Notifications
You must be signed in to change notification settings - Fork287
3D CAD viewer and converter based on Qt + OpenCascade
License
fougue/mayo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Mayo is a basic 3D viewer inspired by FreeCad.
Current features are :
- Multi-documents support, user can open many parts in the session
- Support of IGES/STEP/BRep formats for import/export operations
- Support of STEP/IGES assemblies (colors and tree structure)
- Support of STL format with either OpenCascade orgmio (optional)
- Perspective/orthographic 3D view projection
- 3D clip planes with configurable capping
- Save image(snapshot) of the current 3D view
- Editable name of STEP/IGES entities
- Editable 3D properties of the imported items, eg. material, color, display mode, ...
- Area and volume properties for meshes and shapes
3D viewer operations :
- Rotate : mouse left + move
- Pan : mouse right + move
- Zoom : mouse wheel(scroll)
- Window zoom : mouse wheel + move
- Instant zoom : space bar
Mayo requires Qt5 and OpenCascade-7.2.0.
Although only tested with VC++/Windows it should build fine on Linux and MacOS.
It uses theCSF_OCCTIncludePath
andCSF_OCCTLibPath
environment variables to locateOpenCascade include and lib paths. On Windows these two variables are set by theenv.bat
script which can be found within OpenCascade's base folder. You should run this batch beforebuilding mayo :cd .../mayo
qmake
(n)make
In case you don't want to run this file you can use theCASCADE_INC_DIR
andCASCADE_LIB_DIR
qmakevariables instead :qmake "CASCADE_INC_DIR=occ_include_dir" "CASCADE_LIB_DIR=occ_library_dir"
To enable optional gmio library, add this option to the qmake command line:"GMIO_ROOT=path_to_gmio"
About
3D CAD viewer and converter based on Qt + OpenCascade