Struct t8_cmesh_mesh_deformation
Defined in File t8_cmesh_mesh_deformation.hxx
Struct Documentation
-
struct t8_cmesh_mesh_deformation
Struct for mesh deformation.
Public Functions
-
inline t8_cmesh_mesh_deformation(t8_cmesh_t cmesh)
Constructor.
-
inline ~t8_cmesh_mesh_deformation()
Destructor.
-
std::unordered_map<t8_gloidx_t, t8_3D_vec> calculate_displacement_surface_vertices(const t8_cad_handle *cad)
Computes the displacements of the surface vertices.
- Parameters:
cad – [in] A pointer to the CAD-based geometry object.
- Returns:
Map from global vertex ID to 3D displacement vector
Apply vertex displacements to a committed cmesh.
Iterates over the provided map of global vertex IDs to 3D displacement vectors, updating the coordinates in each tree where the vertex appears.
- Parameters:
displacements – [in] Map from global vertex ID to 3D displacement vector [dx, dy, dz].
cad – [in] The shared pointer to the CAD geometry to update.
-
inline t8_cmesh_mesh_deformation(t8_cmesh_t cmesh)