see title, file attached ...
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15572 (Git)
Build type: Release
Branch: master
Hash: ab1f4c442d443adae106a2ea1ed877f33db86154
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Switzerland (de_CH)
Edit: see post for Python code to do the above: https://forum.freecadweb.org/viewtopic. ... 83#p279183
clear mesh does not work for Netgen meshes anymore
Moderator: bernd
Forum rules
and Helpful information for the FEM forum
and Helpful information for the FEM forum
Re: clear mesh does not work for Netgen meshes anymore
Cleaning Box_Mesh does not work for
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15252 (Git)
Build type: Release
Branch: master
Hash: 652e1dbdd0fb74f1d3df8034254281df9c24aae6
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Czech/CzechRepublic (cs_CZ)
But it works for older version
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14993 (Git)
Build type: Release
Branch: master
Hash: 1e6818b6fbf86ad08d8fc85252dddcae8891dd54
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Czech/CzechRepublic (cs_CZ)
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15252 (Git)
Build type: Release
Branch: master
Hash: 652e1dbdd0fb74f1d3df8034254281df9c24aae6
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Czech/CzechRepublic (cs_CZ)
But it works for older version
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14993 (Git)
Build type: Release
Branch: master
Hash: 1e6818b6fbf86ad08d8fc85252dddcae8891dd54
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Czech/CzechRepublic (cs_CZ)
Re: clear mesh does not work for Netgen meshes anymore
stupid question:
how to clear/clean a mesh?
how to clear/clean a mesh?
Re: clear mesh does not work for Netgen meshes anymore
something must have been changed in FreeCADs recomputes ...
works great, teh mesh is cleared, but as soon as the document is recomputed by
the mesh appears again.
A workaround would be to comment this line: https://github.com/FreeCAD/FreeCAD/blob ... ds.py#L528
But the problem is at a recompute the Shape will be remeshed immediately which could go for a looooong time and thus the user has to kill FreeCAD because this is not what the user wants probaly. It should be possible to mark the mesh if it should be meshed on next recompute or not.
bernd
Code: Select all
import Fem
FreeCAD.open(FreeCAD.ConfigGet("AppHomePath") + 'data/examples/FemCalculixCantilever3D.FCStd')
App.ActiveDocument.Box_Mesh.FemMesh = Fem.FemMesh()
Code: Select all
App.ActiveDocument.recompute()
A workaround would be to comment this line: https://github.com/FreeCAD/FreeCAD/blob ... ds.py#L528
But the problem is at a recompute the Shape will be remeshed immediately which could go for a looooong time and thus the user has to kill FreeCAD because this is not what the user wants probaly. It should be possible to mark the mesh if it should be meshed on next recompute or not.
bernd
Re: clear mesh does not work for Netgen meshes anymore
There were some problems with the old recompute mechanism where features could be set as touched but the tree view didn't show this with the overlay icon. This is because the mustExecute was not correctly implemented or not implemented at all. Then a regression was introduced with v0.17 where objects are superfluously recomputed and thus took a lot of time.
Thus, the recompute mechanism has been reworked to be more robust against possible incorrect implementations of module feature and to reduce superfluous recomputes.
The misbehaviour in FEM now just demonstrates that things work as expected.
To restore the old behaviour you only have to change a single line:
In FemMeshObject.cpp declare FemMesh not as Prop_None but as Prop_NoRecompute or Prop_Output.
Thus, the recompute mechanism has been reworked to be more robust against possible incorrect implementations of module feature and to reduce superfluous recomputes.
The misbehaviour in FEM now just demonstrates that things work as expected.
To restore the old behaviour you only have to change a single line:
In FemMeshObject.cpp declare FemMesh not as Prop_None but as Prop_NoRecompute or Prop_Output.