Progress of a opencascade sketcher
Progress of a opencascade sketch
implemenation.
~/opt/hal-core/src/hal/components/matrix/cpp_interface/libocct/occ_apps/OcctQtWidget
You need to load (eventually compile) the 2 projects of above path.
- OcctQtApp (is only the executable app that executes the OcctQtLib code)
- OcctQtLib (the source code. Coded as a Widget)
The opencascade.tar.gz is the used opencascade library. The .pro files have linked path's to this.
This opencascade archive is also a qt project. And can be compiled by qt.
Sniff into the ~/opt/opencascade/oce-upstream-V7_5_0beta/adm/qmake/ dir to find the Occt.pro file.
Specs until now
- User can select 3 types off drawing grid plane's to draw on.
- Primitives all in 3d space working :
point
line linestrip
arc 3p center
arc 3p contour
circle 2p center
square
- Most of the icons work, like view top, bottom, left, right etc, zooming, etc.
- Color selector. Contains a nice piece of code to convert qt to occt colors.
- For F8 ortho i made a test input that run's like a classic autocad line input method.
- Contains a old russian code named libsctecher for reference.
Todo soon
- 3d spline... Got algo for this already.
- bezier curve... Got old algo for this, but maybe use a occt shape for this.
- Starting a trim implemenation.
For reference : eryar/occSketcher#4 source code example.