Mesh Solid โ
Fills closed Breps and closed meshes with tetrahedra for Ten Node Tetrahedron, with gmsh. The tetrahedra are smaller where a Mesh Refinement asks, and the mesh has a node at every point you give it. Breps that touch are meshed as one, and share their nodes where they meet.
๐ง Grasshopper component โ

SolidsClosed Breps or closed meshes to fill.
SizeThe edge length the tetrahedra aim for, in m, one for each solid; the last one is used for the rest.
RefinementsWhere the tetrahedra are to be smaller.
PointsPoints the mesh must have a node at, such as point loads and supports.
FeatureAngleClosed meshes only: edges that fold by more than this many degrees stay sharp.
TetrahedraFour node tetrahedra, a branch {solid} for each solid.
FaceNodesThe nodes on each face, a branch {solid;face}, the middles of the tetrahedra's edges included.
๐ When to use it โ
Use it when
- A solid is a closed Brep or a closed mesh: a footing, a bracket, a bone, a scanned sculpture.
- It needs smaller elements in places - round a hole, along a fillet, at a load - and larger ones elsewhere: wire a Mesh Refinement per place.
- Several solids touch and must work together, such as a column on its footing: give them all to one Mesh Solid. Their tetrahedra come out a branch each, so each can get its own material.
Do not use it when
- The body is thin โ mesh its middle surface with Mesh Surface for shells.
- A hexahedral mesh suits the shape โ Mesh Series to Brick.
๐ก What it does โ
Mesh Solid writes the geometry to files, has gmsh mesh them, and reads the mesh back. gmsh is free, and you install it yourself, as you do OpenSees: see Setup.
- Breps go to gmsh as STEP files, so it meshes their true faces: a cylinder's round face stays round. Breps that touch are cut into pieces where they meet, so the mesh has the same nodes on both sides of every interface. Points are cut into them too, which puts a node at each.
- Closed meshes go as STL. gmsh cuts their surface into patches at the edges sharper than Feature Angle, remeshes each patch at Size, and fills the whole.
- Face Nodes gives, for each face, the tetrahedra's corners on it and the middles of their edges, where Ten Node Tetrahedron puts its other six nodes. Support a face with all of them: held at its corners only, the edge nodes between them would be left free.
Warning
Set Assemble Model's Tolerance below the smallest tetrahedron. Its default, 1 cm, welds nodes nearer than that together. Mesh Solid's remark gives the shortest edge: set Assemble Model's Tolerance below it, 0.1 mm for most solids.
Note
Mesh Solid runs every time an input changes, however many tetrahedra it is asked for. A Size typed in metres on a model in millimetres asks for billions. Press Escape to stop gmsh.
โ ๏ธ Messages โ
| Message | What it means |
|---|---|
| Alpaca4d meshes with gmsh โฆ It found none | gmsh is not installed, or not where Alpaca4d looks. See Setup. |
| Solid โฆ is a Brep that is not closed | Mesh Solid fills closed Breps. For a surface, use Mesh Surface. |
| Solid โฆ is a mesh with holes in it | Close it first, with Rhino's FillMeshHoles. |
| Point โฆ is in no solid, nor on one | It is left out. |
| The shortest element edge is โฆ | Set Assemble Model's Tolerance below it. |
| The worst tetrahedron is shaped โฆ | A tetrahedron is nearly flat: stresses next to it are unreliable. A smaller Size, or a refinement there, helps. |
| gmsh made no mesh โฆ Its script is โฆ | gmsh failed. The message has its own words, and the folder its script and the geometry are in: open the script in gmsh to see where it stops. |
| Stopped: gmsh was halted with Escape | You pressed Escape while it meshed. |
| gmsh was killed while it meshed | It ran out of memory, most likely: the Size or a refinement asks for far too many tetrahedra. |
