|
MeshUtilsTransformMeshGeometry3D Method |
Transforms the specified MeshGeometry3D with the specified Transform3D and returns a new MeshGeometry3D (the same MeshGeometry3D is returned in case of null or identity transform).
If transformNormals is set to true (by default) the normals are transformed with inverted and transposed transform matrix.
Namespace: Ab3d.UtilitiesAssembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax public static MeshGeometry3D TransformMeshGeometry3D(
MeshGeometry3D mesh,
Transform3D transform,
bool transformNormals = true
)
Parameters
- mesh MeshGeometry3D
- MeshGeometry3D that is transformed
- transform Transform3D
- Transform3D
- transformNormals Boolean (Optional)
- if true (by default) the normals are transformed with inverted and transposed transform matrix; if false normals are not transformed and are copied from original MeshGeometry3D
Return Value
MeshGeometry3Dnew MeshGeometry3D with transformed Positions and Normals (in case transformNormals is true).
See Also