Copyright (c) 2018 Shing Liu (eryar@163.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
First you need the qt and Mesa/OpenGL development files: sudo apt-get install qt5-default qt5-qmake qtbase5-dev-tools qtcreator libglu1-mesa-dev mesa-common-dev
- Build Open CASCADE from source with CMake(https://dev.opencascade.org/doc/overview/html/occt_dev_guides__building_cmake.html);
- Build occQt with Qt Creator;
Then from the FreeCad ppa (make sure you have http://ppa.launchpad.net/freecad-maintainers/freecad-daily/ubuntu in your apt sources list): sudo apt-get install oce-draw liboce-modeling-dev liboce-ocaf-dev
Open the occQt.pro from the Qt menu and set the variable CASROOT Opencascade installation path
First you need the qt-vs-addin, you can download it from here: http://download.qt.io/archive/vsaddin/ open th occQt.pro and set the variable CASROOT Opencascade installation path then open the occQt.pro from the Qt menu in the Visual Studio.
- Demonstrate the operations for the OpenCASCADE viewer, such as pan, zoom and rotate; the view manipulate mainly by the middle button of the mouse, and left button is used to pick and select;
- Demonstrate the primitive shape construction algorithms usage, such as box, cone, sphere, cylinder and torus creation;
- Demonstrate some modeling algorithms, such as prism, revol, loft and fillet, chamfer;
- Demonstrate boolean operations, such as cut, fuse and common;
- Demonstrate the helix algorithms;
- Enjoy!
Update:
Alessandro Screm
https://github.com/AlessandroScrem/occQt
For more info, please visit the web site: http://www.cppblog.com/eryar/
Feedback: Shing Liu: eryar@163.com