MeshScaler#
- class polpo.preprocessing.mesh.transform.MeshScaler(scaling_factor=20.0, attr=None)[source]#
Bases:
MeshTransformer
Scale mesh.
- Parameters:
scaling_factor (float) – Scaling factor.
attr (str) – Mesh attribute containing vertex information. If None, it uses registered or “vertices”.
- apply(mesh)#
Apply step.
- Parameters:
mesh (Mesh) – Mesh to transform.
- Returns:
transformed_mesh (Mesh) – Transformed mesh.