fem.gmsh.tet_mesh_from_gmsh
fem.gmsh.tet_mesh_from_gmsh(mesh, *, grid=None, points=None)Wrap a :class:GmshMesh as the FEM layer’s :class:GmshTetMesh — static.
The node layout is already the one :class:~cadjoint.fem.tetmesh.TetMesh documents — boundary corners, interior corners, midsides — so this only attaches the boundary triangles and the frozen base positions.
edge_parents here describes which corners a midside lies between, not a straight-sided construction: the midsides are on the surface. Consumers that read it as a corner-pair table (BC completion, TET10 element assembly) are unaffected. The positions are the seeds; what moves them under a design change is the node_map kind.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| mesh | GmshMesh | The Gmsh mesh. | required |
| grid | Any | The sampling grid, recorded on the mesh. | None |
| points | np.ndarray | None | Positions to use instead of :attr:GmshMesh.points. |
None |
Returns
| Name | Type | Description |
|---|---|---|
| A | GmshTetMesh | class:GmshTetMesh. |