Generating a uniform quad mesh for FEM analysis (GeometryGym)

Hi everyone,

I am currently working on generating a geometry in Grasshopper, which I plan to export to a FEM program later using the GeometryGym tools.

Before I move on to the export stage, I need to make sure my geometry is meshed correctly, but I am running into some issues. As you can see in the first attached image, my current mesh is incorrect.

What I am trying to achieve is a uniform quad mesh (a regular grid of squares), just like the example shown in the second image.

Could someone help me adjust my Grasshopper script to generate a proper, uniform quad mesh? I have attached my .gh file for reference.

Mesh.gh (34.2 KB)

Thanks in advance for your help!

use quad remesh
there’s also a quad remesh settings for more control

The image shows at least two triangle faces near the left ‘T’ ? Also, regarding those ‘T’ trimmings, your ‘blue’ mesh example shows a basic T-shape , whereas your provided file has tapered T’s:


How do you expect quads to behave around those regions?

You should provide the single internalized ‘final’ brep/surface you need quad-meshed, by itself.

This square mesh looks good indeed. However, I want the mesh to align with the red lines, since supports will be added here later using the Geometry Gym tools. How do I make sure the mesh aligns with the red lines?

Do you have a strand7 API license? You can use our plugin to call the strand7 mesher in that case, and then assign the structural properties in Grasshopper. Strand7 do charge extra for access to the API to the user and this is needed for this.

Other users often mesh with Karamba3d. Meshing in Rhino is targeted at visualization and fabrication, so achieving a high quality structural analysis mesh is a challenge using Rhino meshing functions.

make sure the geometry is divided at the seams, and use quad remesh options to control the seams

I have implemented these steps, and the mesh generates almost perfectly, but there are still some issues. When zooming in closely on the corners, the topology remains irregular. How can I resolve this to ensure a clean, accurate mesh at the corners?

Mesh.gh (40.0 KB)

And the mesh still does not route exactly to the points (see blue circle) where the point loads need to be applied, as shown in the previous image. How can I fix this?

for the point load i would create additional guide curves and would make sure the input brep is divided (vertically, i’d assume) at that point.

Actually, I think it’s important for your case to make sure you pass all your required criteria to the algorithm in the form of geometry. The algorithm doesn’t know anything about point loads, finite element analysis, or any of your other criteria. So making sure you prepare your input geometry is quite crucial.

to make sure the quads “snap” to the geometry’s outline, i would try to see if “hard edges” and “Seam edges” (from quadremesh settings) fixes that.

failing that, i would create a simple algorithm to move those points to the desired positions.

Failing that, i would create my own quad-remeshing algorithm based on my needs. There’s only so far you can go with a general purpose algo like quadremesh, so hyper-specialized criteria are often not able to be met.