TetGen export does nothing?
Forum rules
and Helpful information
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help
Also, be nice to others! Read the FreeCAD code of conduct!
Also, be nice to others! Read the FreeCAD code of conduct!
Re: TetGen export does nothing?
Do you guys have FreeCAD built with netgen support? And is the netgen library linked to the same OCC/OCE version you linked with FreeCAD? About Mefisto not being available is probably caused by not having activated SMesh.
Re: TetGen export does nothing?
For me the answer is a resounding NO. I have not been able to get any version of netgen to build with OCE 0.16 or 0.17. If anyone has a clue on building netgen with current OCE, please, please share.wmayer wrote:Do you guys have FreeCAD built with netgen support? And is the netgen library linked to the same OCC/OCE version you linked with FreeCAD? About Mefisto not being available is probably caused by not having activated SMesh.
My release version, 3703 and development version, 3789 are both built with the same configuration. Release has Mefisto, development now dose not.
OK, I'll bite... How do you "activate" SMesh? And when did this become necessary to do when building FreeCAD? Mefisto option was there and working until just recently, in the Mesh Design WB > Create mesh from shape.
Mark
This post made with 0.0% Micro$oft products - GOT LINUX?
Re: TetGen export does nothing?
This is taken from the CMakeLists.txt file under MeshPart/App
FREECAD_BUILD_SMESH is a build option you should see with cmake-gui and is ON by default. Now when it's on the defines HAVE_SMESH and HAVE_MEFISTO are passed to the compiler to enable Mefisto. So, the other way around if Mefisto is not activated then then this can happen when HAVE_MEFISTO is not defined which this means that FREECAD_BUILD_SMESH must be off somehow.
Another reason that Mefisto is not enabled is when loading the MeshPart Python module fails. This is the part of the code of the panel:
So, since you have problems loading this module I guess the latter is your problem.
Code: Select all
if (FREECAD_BUILD_SMESH)
add_definitions(-DHAVE_SMESH -DHAVE_MEFISTO)
endif(FREECAD_BUILD_SMESH)
if(FREECAD_BUILD_FEM_NETGEN)
add_definitions(-DHAVE_NETGEN)
endif(FREECAD_BUILD_FEM_NETGEN)
Another reason that Mefisto is not enabled is when loading the MeshPart Python module fails. This is the part of the code of the panel:
Code: Select all
#if !defined (HAVE_MEFISTO)
ui->radioButtonMefisto->setDisabled(true);
#else
ui->radioButtonMefisto->setChecked(true);
#endif
#if !defined (HAVE_NETGEN)
ui->radioButtonNetgen->setDisabled(true);
#else
ui->radioButtonNetgen->setChecked(true);
#endif
Gui::Command::doCommand(Gui::Command::Doc, "import Mesh");
try {
Gui::Command::doCommand(Gui::Command::Doc, "import MeshPart");
}
catch(...) {
ui->radioButtonNetgen->setDisabled(true);
ui->radioButtonMefisto->setDisabled(true);
ui->radioButtonStandard->setChecked(true);
}
Re: TetGen export does nothing?
I do not have any string with FREECAD_BUILD_SMESH in my CMakeCache.txt.wmayer wrote:FREECAD_BUILD_SMESH is a build option you should see with cmake-gui and is ON by default
So I suspect, I can not build SMESH with the standard procedure. What should I do?
Ulrich
Re: TetGen export does nothing?
Ah, FREECAD_BUILD_SMESH is a hidden option and can't be set directly by the user. It's set to ON if FREECAD_BUILD_FEM or FREECAD_BUILD_MESH_PART is on.
Re: TetGen export does nothing?
Hi Wernerwmayer wrote:Do you guys have FreeCAD built with netgen support? And is the netgen library linked to the same OCC/OCE version you linked with FreeCAD? About Mefisto not being available is probably caused by not having activated SMesh.
I have many FreeCADs compiled with many different combinations of different Build Options, different OCEs, and I have one with NETGEN
The tests I referred to above were all with Cmake options Build "Mesh" "Mesh Part" "FEM" enabled but not "FEM"-NETGEN.
I just now tested with my NETGEN FreeCAD. I have compiled it (see below) with the default OCE and NETGEN in Kubuntu 14.04.1 64bit. The NETGEN is 4.9.13.
OS: Ubuntu 14.04.1 LTS
Word size: 64-bit
Version: 0.14.3698 (Git)
Branch: master
Hash: 8188bd5385aa0f1e3c93d90613750c7dfc562b33
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
SoQt version: 1.6.0a
OCC version: 6.7.0
In all my versions with MESH MESH_PART FEM but not FEM-netgen, I have only standard mesh option in Part to Mesh task view. mefisto and netgen are both greyed out.
In my NETGEN FreeCAD, I have all three meshing options and FreeCAD does not seem to crash when I run Part to Mesh multiple times.
Jim