Search found 13333 matches

Go to advanced search

by wmayer
Tue Dec 18, 2018 10:22 am
Forum: Open discussion
Topic: Mesh type
Replies: 2
Views: 46

Re: Mesh type

FreeCAD can handle both mesh types. In the Mesh Design workbench you can create the surface meshes and as Normand has already said in the FEM workbench you can create the volume meshes. There you will find two options: the built-in Netgen mesher or the gmsh application (which you then must have inst...
by wmayer
Sun Dec 16, 2018 5:04 pm
Forum: Developers corner
Topic: get the information if FreeCAD is compiled with VTK by Python
Replies: 11
Views: 283

Re: get the information if FreeCAD is compiled with VTK by Python

if "BUILD_FEM_VTK" in FreeCAD.__cmake__
This alone should be sufficient.
by wmayer
Sun Dec 16, 2018 9:26 am
Forum: Developers corner
Topic: get the information if FreeCAD is compiled with VTK by Python
Replies: 11
Views: 283

Re: get the information if FreeCAD is comiled with VTK by Python

Code: Select all

App.__cmake__.index("BUILD_FEM_VTK") >= 0
by wmayer
Sat Dec 15, 2018 8:42 pm
Forum: Help on using FreeCAD
Topic: Regression on deleting constraints?
Replies: 16
Views: 367

Re: Regression on deleting constraints?

I looked into your code, but it would implement an event instead of an event filter. The eventFilter is OK and maybe the only way because we need something derived from QObject since it's an object in the background the user doesn't realize. ... At least on QWidget it works this way: If a widget wa...
by wmayer
Sat Dec 15, 2018 4:26 pm
Forum: Help on using FreeCAD
Topic: Regression on deleting constraints?
Replies: 16
Views: 367

Re: Regression on deleting constraints?

abdullah wrote:
Sat Dec 15, 2018 1:28 pm
Take a look to this first try:
https://github.com/FreeCAD/FreeCAD/pull/1845
It's not exactly the solution I suggested because you already handle the event with the sent ShortcutOverride. But nevertheless it works as expected so it can be merged.

Thanks!
by wmayer
Sat Dec 15, 2018 1:19 pm
Forum: Developers corner
Topic: get the information if FreeCAD is compiled with VTK by Python
Replies: 11
Views: 283

Re: get the information if FreeCAD is comiled with VTK by Python

bernd wrote:
Sat Dec 15, 2018 6:37 am
but on travis FreeCAD is compiled without vtk?!
Sure? Here is a header file that requires vtk: https://github.com/FreeCAD/FreeCAD/blob ... S_Mesh.hxx
by wmayer
Fri Dec 14, 2018 2:29 pm
Forum: Python scripting and macros
Topic: Python import failing in FreeCAD.
Replies: 9
Views: 208

Re: Python import failing in FreeCAD.

IIRC PYTHONPATH is discarded by FreeCAD. I don't remember exactly the reason but there is one. There is indeed a reason. PYTHONPATH lists several directories and when starting a Python session then it tries to load all modules it finds there even if they are not compatible. In the past on systems w...
by wmayer
Fri Dec 14, 2018 9:24 am
Forum: Help on using FreeCAD
Topic: Window and Widget Position and Size Manager?
Replies: 2
Views: 94

Re: Window and Widget Position and Size Manager?

Note, that a QWidget has the methods saveGeometry and restoreGeometry: http://doc.qt.io/qt-5/qwidget.html#restoreGeometry
by wmayer
Fri Dec 14, 2018 9:15 am
Forum: Developers corner
Topic: Gui::Command::doCommand for App
Replies: 13
Views: 414

Re: Gui::Command::doCommand for App

Py::Object mesh = Py::asObject(new FemMeshPy(const_cast<FemMesh*>(this))); // this is what we should get This line is not needed because we call feminout.importZ88Mesh.read that returns an instance of FemMeshPy. So remove this line and further down write: Py::Object mesh(method.apply(args)); if (Py...

Go to advanced search