graphlow.core.MeshGeometry#
- class graphlow.core.MeshGeometry(mesh: TensorMesh[T])#
Differentiable geometry evaluated on a mesh.
This is a thin wrapper around functions in
graphlow.geometry.*that operate on aTensorMeshand return backend tensors. Autograd flows throughmesh.points(and any differentiable data used by the operator).Notes
Returned tensor shapes are always
(n_elements, feature_dim). For example, cell volumes are(n_cells, 1).
Methods
|
Apply the given local FEM matrix on the tet mesh. |
Apply the given Dirichlet boundary condition to the linear problem. |
|
Compute per-cell centroids for a volume mesh. |
|
|
Generate the cell-wise local FEM mass matrix on the tet mesh. |
|
Generate the cell-wise local FEM rigidity matrix on the tet mesh. |
Compute per-cell volumes for a volume mesh. |
|
|
Compute Chamfer distance to a target point set. |
Compute face area vectors. |
|
Compute face areas. |
|
Compute face centroids. |
|
|
Compute unit face normals. |
|
Compute the global FEM matrix on the tet mesh from the given cell-wise local FEM matrix. |
|
Compute Hausdorff distance to a target point set. |
|
Compute isotropic anisotropic metric (IsoAM) operator. |
|
Compute IsoAM with a Neumann boundary model. |
Compute the enclosed volume of a surface mesh. |