<p align="center">
<img src="images/appicon_256.png" width="200px" align="center" />
</p>
# What is Mayo
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 STEP/IGES assemblies (colors and tree structure)
* Perspective/orthographic 3D view projection
* 3D clip planes with configurable capping
* 3D view cube providing intuitive camera manipulation
* 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
# Supported formats
Formats | Import | Export | Notes
--------------------------|-----------|----------|------------------------------
STEP | ✔ | ✔ | AP203, 214, 242(some parts)
IGES | ✔ | ✔ | v5.3
OpenCascade BREP | ✔ | ✔ |
OBJ | ✔ | ✗ | Requires OpenCascade ≥ v7.4.0
STL | ✔ | ✔ | ASCII/binary
# Build instructions
Mayo requires Qt5 and OpenCascade-7.3.0
Although only tested with VC++/Windows it should build fine on Linux and MacOS.
It uses the `CSF_OCCTIncludePath` and `CSF_OCCTLibPath` environment variables to locate
OpenCascade include and lib paths. On Windows these two variables are set by the `env.bat`
script which can be found within OpenCascade's base folder. You should run this batch before
building mayo :
`cd .../mayo`
`qmake`
`(n)make`
In case you don't want to run this file you can use the `CASCADE_INC_DIR` and `CASCADE_LIB_DIR` qmake
variables 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"`
# Screenshots
<img src="doc/screenshot_1.png"/>
没有合适的资源?快使用搜索试试~ 我知道了~
基于OCC的3D查看器Mayo修改代码
共601个文件
obj:168个
cpp:133个
h:100个
4星 · 超过85%的资源 需积分: 50 100 下载量 152 浏览量
2020-08-29
13:39:06
上传
评论 5
收藏 57.79MB ZIP 举报
温馨提示
编译的github上的开源的3D查看器项目Mayo,修改了他的源代码,修改了C++17特性,使得能编译通过,现将修改的代码上传
资源推荐
资源详情
资源评论
收起资源包目录
基于OCC的3D查看器Mayo修改代码 (601个子文件)
cube.brep 5KB
mayo_bezier_curve.brep 4KB
moc_predefs.h.cbt 59B
opencascade.conf 710B
qt.conf 30B
config 299B
qrc_mayo.cpp 919KB
qrc_mayo.cpp 919KB
mainwindow.cpp 40KB
io.cpp 33KB
widget_properties_editor.cpp 28KB
item_view_buttons.cpp 21KB
test.cpp 19KB
widget_model_tree.cpp 15KB
gui_document.cpp 14KB
dialog_inspect_xde.cpp 13KB
theme.cpp 12KB
widget_gui_document.cpp 12KB
graphics_entity_driver.cpp 11KB
widget_clip_planes.cpp 11KB
moc_widget_shape_selector.cpp 10KB
moc_widget_shape_selector.cpp 10KB
application.cpp 9KB
widget_model_tree_builder_xde.cpp 9KB
moc_application.cpp 8KB
moc_application.cpp 8KB
moc_document.cpp 8KB
moc_document.cpp 8KB
widget_shape_selector.cpp 8KB
widget_occ_view_controller.cpp 7KB
moc_v3d_view_controller.cpp 7KB
moc_v3d_view_controller.cpp 7KB
moc_task_manager.cpp 7KB
moc_task_manager.cpp 7KB
dialog_export_options.cpp 7KB
xcaf.cpp 7KB
unit_system.cpp 7KB
document_tree_node_properties_providers.cpp 7KB
qwidget_utils.cpp 7KB
main.cpp 7KB
dialog_task_manager.cpp 6KB
moc_gui_document.cpp 6KB
moc_gui_document.cpp 6KB
moc_gui_application.cpp 6KB
moc_gui_application.cpp 6KB
dialog_options.cpp 6KB
document.cpp 5KB
moc_application_item_selection_model.cpp 5KB
moc_application_item_selection_model.cpp 5KB
occt_window.cpp 5KB
graphics_utils.cpp 5KB
ais_text.cpp 5KB
dialog_save_image_view.cpp 5KB
moc_widget_file_system.cpp 5KB
moc_widget_file_system.cpp 5KB
moc_item_view_buttons.cpp 5KB
moc_item_view_buttons.cpp 5KB
mesh_utils.cpp 5KB
button_flat.cpp 5KB
moc_widget_message_indicator.cpp 5KB
moc_widget_message_indicator.cpp 5KB
moc_property.cpp 5KB
moc_property.cpp 5KB
moc_messenger.cpp 4KB
moc_messenger.cpp 4KB
widget_file_system.cpp 4KB
moc_settings.cpp 4KB
moc_settings.cpp 4KB
string_utils.cpp 4KB
moc_mainwindow.cpp 4KB
moc_mainwindow.cpp 4KB
qt_utils.cpp 4KB
task_manager.cpp 4KB
proxy_styled_item_delegate.cpp 4KB
moc_button_flat.cpp 4KB
moc_button_flat.cpp 4KB
unit.cpp 4KB
gui_application.cpp 4KB
occt_enums.cpp 4KB
qtgui_utils.cpp 3KB
widget_message_indicator.cpp 3KB
graphics_tree_node_mapping.cpp 3KB
item_view_utils.cpp 3KB
property_enumeration.cpp 3KB
moc_widget_occ_view_controller.cpp 3KB
moc_widget_occ_view_controller.cpp 3KB
moc_win_taskbar_global_progress.cpp 3KB
moc_win_taskbar_global_progress.cpp 3KB
gui_document_list_model.cpp 3KB
moc_dialog_save_image_view.cpp 3KB
moc_dialog_save_image_view.cpp 3KB
moc_dialog_task_manager.cpp 3KB
moc_widget_gui_document.cpp 3KB
moc_dialog_task_manager.cpp 3KB
moc_widget_gui_document.cpp 3KB
moc_dialog_inspect_xde.cpp 3KB
moc_widget_clip_planes.cpp 3KB
moc_widget_clip_planes.cpp 3KB
moc_dialog_inspect_xde.cpp 3KB
moc_widget_model_tree.cpp 3KB
共 601 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7
资源评论
- 迷路的老男孩2023-05-31这个资源编译有点难改啊,改了工程属性的QT和OCC路径还是不行,最后自己用QT编译了,QT只需要小改一下
潇湘散客
- 粉丝: 430
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 11月美宝莲专卖店背柜完稿740mmX400mm
- 通过 stdio 进行简单(但高效)的进程间通信,从 Node.js 运行 Python 脚本.zip
- STM32F030F4P6-LOCK+OLED
- 11月美宝莲专卖店grab&go完稿 grab&go-o.ai
- 2023-04-06-项目笔记 - 第三百二十七阶段 - 4.4.2.325全局变量的作用域-325 -2025.11.24
- 章节2:编程基本概念之python对象的基本组成和内存示意图
- 适用于 Raspberry Pi 的 Adafruit 库代码.zip
- 章节2:编程基本概念之python程序的构成
- 适用于 Python 的 LINE 消息 API SDK.zip
- 宝塔面板安装及关键网络安全设置指南
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功