Quad Mesh
Moderator: bernd
Forum rules
and Helpful information for the FEM forum
and Helpful information for the FEM forum
- microelly2
- Veteran
- Posts: 4688
- Joined: Tue Nov 12, 2013 4:06 pm
- Contact:
Quad Mesh
At the moment I see only a small number of methods in the mesh wb,
I need more power to handle large data sets without render functionality.
Are there already fast methods available in FreeCAD from Python to create quad meshes from triangulated meshes?
what of the methods described in
Quad-Mesh Generation and Processing: a survey
David Bommes 1, Bruno Lévy 2, Nico Pietroni 3, Enrico Puppo 4, Claudio Silva 5;7, Marco Tarini 6, Denis Zorin 7
are ready to use in the current FreeCAD?
thanks for some tipps that can show me the direction to go.
EDIT: Example from maya
I need more power to handle large data sets without render functionality.
Are there already fast methods available in FreeCAD from Python to create quad meshes from triangulated meshes?
what of the methods described in
Quad-Mesh Generation and Processing: a survey
David Bommes 1, Bruno Lévy 2, Nico Pietroni 3, Enrico Puppo 4, Claudio Silva 5;7, Marco Tarini 6, Denis Zorin 7
are ready to use in the current FreeCAD?
thanks for some tipps that can show me the direction to go.
EDIT: Example from maya
Re: Quad Mesh
gmsh has implemented some algorithms: http://gmsh.info/doc/preprints/gmsh_quad_preprint.pdf
- microelly2
- Veteran
- Posts: 4688
- Joined: Tue Nov 12, 2013 4:06 pm
- Contact:
Re: Quad Mesh
thank you for that link.looo wrote:gmsh has implemented some algorithms: http://gmsh.info/doc/preprints/gmsh_quad_preprint.pdf
Re: Quad Mesh
Hi Microelly2,
Are you "only" interested in 2D-meshing or could this be extended to 3D?
If so maybe you could contribute your work to FEM-wb.
BR,
HoWil
Are you "only" interested in 2D-meshing or could this be extended to 3D?
If so maybe you could contribute your work to FEM-wb.
BR,
HoWil
- microelly2
- Veteran
- Posts: 4688
- Joined: Tue Nov 12, 2013 4:06 pm
- Contact:
Re: Quad Mesh
I look for a way to get CAD model from non CAD data sources: 2D Images and 3D scanned point clouds. So nurbs, quadmeshes, Voronoi, Delaunay, voxels are on my way. I think there will be useful ideas for 3D segmentations too. At the moment I do a lot of performance tests on large datasets to see how to handle them inside FreeCAD in short time.HoWil wrote:Hi Microelly2,
Are you "only" interested in 2D-meshing or could this be extended to 3D?
If so maybe you could contribute your work to FEM-wb.
BR,
HoWil
My solution of quad mehs for today is a scipy Rbf Interolation. Meantime I get good results for linear, cubic and thin plate interpolation.
https://www.youtube.com/watch?v=6ly86bF0sUc
Re: Quad Mesh
+1 I have been trying to make quad and hexa meshes with GMSH many times but failed ...microelly2 wrote:thank you for that link.looo wrote:gmsh has implemented some algorithms: http://gmsh.info/doc/preprints/gmsh_quad_preprint.pdf
@microelly2:
FreeCAD 0.17 FEM has a GMSH mesh object and the mesh algorithm can be adjusted. New parameter could be added easily. But as I wrote I failed to make a hexa mesh.
Re: Quad Mesh
hmmm, attractive topic...EDIT: Example from maya
Did you failed to create any quad mesh?bernd wrote:+1 I have been trying to make quad and hexa meshes with GMSH many times but failed ...microelly2 wrote:thank you for that link.looo wrote:gmsh has implemented some algorithms: http://gmsh.info/doc/preprints/gmsh_quad_preprint.pdf
@microelly2:
FreeCAD 0.17 FEM has a GMSH mesh object and the mesh algorithm can be adjusted. New parameter could be added easily. But as I wrote I failed to make a hexa mesh.
Surprisingly it is not (only) about setting meshing algorithm but it seems that quads are created from triangles by option "Recombine all triangular meshes" which you find in gmsh at Tools/Options/Mesh/General. If you trigger this option, gmsh generates quads. Try also to change "Blossom" to "Standard" which influences quads.
The parameters are mentioned in 11th example http://gmsh.info/doc/texinfo/#t11_002egeo as
Code: Select all
// To generate quadrangles instead of triangles, we can simply add
Recombine Surface{100};
There is also
I have not much clue how exactly GMSH interacts with FreeCAD, but global option is yet coded in FemGmshTools.py// If we'd had several surfaces, we could have used 'Recombine Surface "*";'.
// Yet another way would be to specify the global option "Mesh.RecombineAll =
// 1;".
https://github.com/FreeCAD/FreeCAD/blob ... #L358-L361
After ommiting if condition (only to test if it does something)
Code: Select all
#if hasattr(self.mesh_obj, 'RecombineAll') and self.mesh_obj.RecombineAll is True:
geo.write("//recombine\n")
geo.write("Mesh.RecombineAll = 1;\n")
geo.write("\n")
Re: Quad Mesh
Quad surface meshes could be made with FreeCAD FEM GMSH mesh. Just activate the recombine in Property editor change to 2D mesh.
Thats exact the problem. I have not been able to make a valid hex meshfandaL wrote:FreeCAD generates quad meshes on surfaces except that makes mess on volumes...
Re: Quad Mesh
tried this again ...
- set "Recombine All" to True
- set "Recombination Allgorithm" to Blossum full-quad"
Works gread for first order meshes. Quad4 faces are meshed by Gmsh. But it fails for second order meshes. The quadratic edges will be meshed but the faces are linear. The file is attached. Use print mesh info. The quad8 mesh test has 25 nodes.
Anyone an idea how to get the quad8 faces?
- set "Recombine All" to True
- set "Recombination Allgorithm" to Blossum full-quad"
Works gread for first order meshes. Quad4 faces are meshed by Gmsh. But it fails for second order meshes. The quadratic edges will be meshed but the faces are linear. The file is attached. Use print mesh info. The quad8 mesh test has 25 nodes.
Anyone an idea how to get the quad8 faces?
Re: Quad Mesh
works gret with holes too ... for quad4 ...