Hi,
thanks. Ok, so this is pretty much the best and correct way to do it. Good to know.
I tried to remove everything else but "PreCompiled.h" but that did now compile for me.
I will investigate later in detail but I'm good for now.
Thanks again.
Search found 149 matches
- Sun Feb 05, 2017 5:50 pm
- Forum: Developers corner
- Topic: Proper user of #include
- Replies: 2
- Views: 732
- Sun Feb 05, 2017 9:16 am
- Forum: Developers corner
- Topic: Proper user of #include
- Replies: 2
- Views: 732
Proper user of #include
I've got this: // File: NaviCube.h #ifndef SRC_GUI_NAVICUBE_H_ #define SRC_GUI_NAVICUBE_H_ #include "View3DInventor.h" #include <QCursor> #include <QImage> namespace Gui { class View3DInventorViewer; } class NaviCube { public: NaviCube(Gui::View3DInventorViewer* _viewer) ; void drawNaviCub...
- Sat Feb 04, 2017 7:58 pm
- Forum: Developers corner
- Topic: OpenGL textured rendered if there is content in document
- Replies: 3
- Views: 551
Re: OpenGL textured rendered if there is content in document
Hate to make any promises, maybe I can show something in a few weeks... it all depends so much spare time.
- Sat Feb 04, 2017 4:04 pm
- Forum: Developers corner
- Topic: OpenGL textured rendered if there is content in document
- Replies: 3
- Views: 551
Re: OpenGL textured rendered if there is content in document
OK, solved it!
The problem was that I did not 'load' the textures properly for each OpenGL context, only the first one.
Sorry about the noise.
The problem was that I did not 'load' the textures properly for each OpenGL context, only the first one.
Sorry about the noise.
- Sat Feb 04, 2017 3:43 pm
- Forum: Developers corner
- Topic: OpenGL textured rendered if there is content in document
- Replies: 3
- Views: 551
OpenGL textured rendered if there is content in document
Hi, I'm experimenting with implementing Onshape style navigation cube. My code renders the navigation cube nicely if the FreeCAD document is empty i.e. New from File menu. But if I open an existing document with content (objects) in it then the cube renders black. I've tested rendering my stuff with...
- Sun Jan 29, 2017 2:16 pm
- Forum: Developers corner
- Topic: #include <Eigen/Dense> no working if used in View3DInventorViewer.cpp
- Replies: 1
- Views: 683
Re: #include <Eigen/Dense> no working if used in View3DInventorViewer.cpp
Ok found the solution: In file: FreeCAD-git/src/Gui/CMakeLists.txt I need to include (pun intenede) eigen3 in the include_directories: include_directories( ${EIGEN3_INCLUDE_DIR} ${CMAKE_BINARY_DIR} Pretty basic if you understand FreeCAD build structure and CMake ;) Sorry about the noise. wbr Kusti
- Sun Jan 29, 2017 12:32 pm
- Forum: Developers corner
- Topic: #include <Eigen/Dense> no working if used in View3DInventorViewer.cpp
- Replies: 1
- Views: 683
#include <Eigen/Dense> no working if used in View3DInventorViewer.cpp
Hi, I'm experimenting with View3DInventorViewer and would like to use eigen there. I see that FreeCAD-git/src/Mod/Sketcher/App/planegcs/qp_eq.h includes eigen like this #include <Eigen/Dense> but when I do that in FreeCAD-git/src/Gui/View3DInventorViewer.cpp I get: /Users/nyholku/FreeCAD/FreeCAD-git...
- Sat Jan 28, 2017 1:47 pm
- Forum: Developers corner
- Topic: macOS Qt5 plan and status
- Replies: 100
- Views: 26366
Re: macOS Qt5 plan and status
Thanks, that was actually helpful!
- Sat Jan 28, 2017 1:13 pm
- Forum: Developers corner
- Topic: macOS Qt5 plan and status
- Replies: 100
- Views: 26366
Re: macOS Qt5 plan and status
Thanks, that was helpful. The thing is AFAIU this is supposed to build out of the box if pre-requisites are installed (I have qt5) and someone in this thread obviously has built this on Mac so I was thinking there might be a problem in the build process that someone already had figured out. In FOSS ...
- Sat Jan 28, 2017 12:34 pm
- Forum: Open discussion
- Topic: Python print()
- Replies: 12
- Views: 3844
Re: Python print()
I'm old hand so I can work with anything, very used to all the quirks of programming languages. So this is not bothering me, know that I've figured out how things work. The functionality of the FreeCAD print/Python Console is functional if not totally logical. I'm not saying it is broken, just a lit...