Hey bernd,bernd wrote: ↑Wed Dec 04, 2019 10:34 pm sorry for not answering to this topic for so long. I am just overwhelmed with other stuff ... work, family, etc I would like to finish https://forum.freecadweb.org/viewtopic.php?f=17&t=41117 and afterwards I will have a look.
First of all, bernd, I wish you a happy new year and hope you're doing well
Yes, this should be the same id. At least Salome accepts an id as argument to the AddGroup function, but it seems to be ignored and the group id is filled up in sequential order. Therefore the Python function which is exposed to FreeCAD returns the group id generated by the addGroup call.qingfeng.xia wrote: ↑Sun Jan 26, 2020 8:14 pm I have not got the experience in SMesh programLet me review the code first.ming, but I guess you code is fine when I read througb your code.
I wonder if `theID` in `int FemMesh::addGroup(const std::string TypeString, const std::string Name, const int theId)` is equal to the group ID in
`void FemMesh::addGroupElements(const int GroupId, const std::set<int> ElementIds)`
That may be true. Since my experience is quite limited which Python C++ functions are fast and which are slow, maybe my choice may not be wise. Nevertheless I would appreciate any hints in this direction very much. Further my C++ skills are a bit rusty and quite old, so if you got ideas in this concern, just tell me
As far as I understood, the MeshGroup objects can not immediately use the addGroup functionality. The exposed Python functions are only useful at the moment as a low level interface to provide a group to a mesh. There have to be high level functions implemented which create a MeshGroup object if the addGroup function is called. Further, the XDMF code is somehow broken in the up to date freecaddaily, so before any implementation of addGroup I have to fix it But this should be done within the next few days or weeks. But XDMF itself supports groups already. This is true for volume groups, for surface groups, and for node groups if I recall correctly.qingfeng.xia wrote: ↑Sun Jan 26, 2020 8:14 pm I am also reading through your xmdf exporting py code. I am hoping your code can be merged asap. Once your code merged, is that possible to import salome mesh into FreeCAD, with groups listed in GUI as `MeshGroup` object?
The other way around, is that posible to export gmsh MeshGroups to fenics xdmf?