Skip to content

Open CASCADE Technology sample - 3D Viewer within Qt Widgets window

License

Notifications You must be signed in to change notification settings

grotius-cnc/occt-samples-qopenglwidget

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

These sample's demonstrates how to use Open CASCADE Technology (OCCT) 3D Viewer within a

window created using Qt5 on Windows and Linux platforms.

Opencascade libary download : https://github.com/grotius-cnc/occt-samples-qopenglwidget/releases/download/1.1/opencascade.tar.gz

Unpack it in ~/opt/ That it looks like ~/opt/opencascade/ etc.

OpenGL-based OCCT viewer is embedded into Qt5 Widgets application via QOpenGLWidget widget.

OCCT QOpenGLWidget sample. QWidget library

sketcher gui_preview

Specs:
- C++ Library.
- QWidget.
- Some sketcher functions, wich i find helpfull but incomplete related to autodesk input method's.

OCCT QOpenGLWidget sample. Gui designer widget coding.

occt_widget

Specs:
- Xyz mouse coordinates mapped to the occt environment.
- Transparant qt widget overlay.
- Viewports, 3d, top, bottom, left, right, front, back.
- Zoom to fit, zoom +, zoom -
- Create a shape and set tranceparancy level.
- Show shapes as wireframe or as shaded object.
- Show or hide 3d navigation cube.
- Show or hide triedron.
- Show shape in orthographic or perspective mode.
- Show or hide shape boundary lines.
- Print the actual opencascade performance

OCCT QOpenGLWidget sample. Parametric widget coding.

occt-qopenglwidget-sample-wnt

Specs:
- Transparant qt widget overlay.
- Rotate view with navigation cube.
- Zoom with mouse.
- Show shapes as shaded object.
- Shows 3d navigation cube
- Shows triedron.
- Print the actual opencascade performance

About

Open CASCADE Technology sample - 3D Viewer within Qt Widgets window

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 68.8%
  • C++ 30.2%
  • Other 1.0%