Back to Finite Element (MFEM)
mfem.mesh.scale
Scales a mesh uniformly or along each axis.
Syntax
mfem.mesh.scale(mesh, factor)
Description
Scales a mesh uniformly or along each axis. Multiplies all vertex coordinates by the scale factor(s), effectively resizing the mesh. Scaling is performed relative to the origin.
Parameters
| Name | Description |
|---|---|
| mesh | - The mesh to scale (modified in place) |
| factor | - Either a single uniform scale factor, or an array of per-axis factors [sx, sy] (2D) or [sx, sy, sz] (3D) |
Returns
void