 |
MeshUtilsTransformMesh(PositionNormalTextureVertex, Transform, Boolean) Method |
Transforms the specified vertices in an array of PositionNormalTextureVertex with the specified Transform and returns a new PositionNormalTextureVertex array (the same array 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: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntaxpublic static PositionNormalTextureVertex[] TransformMesh(
PositionNormalTextureVertex[] vertices,
Transform? transform,
bool transformNormals = true
)
Parameters
- vertices PositionNormalTextureVertex
- array of PositionNormalTextureVertex
- transform Transform
- Transform
- 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 StandardMesh
Return Value
PositionNormalTextureVertexnew StandardMesh with transformed Positions and Normals (in case transformNormals is true).
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.MeshUtils.TransformMesh(Ab4d.SharpEngine.Common.PositionNormalTextureVertex[],Ab4d.SharpEngine.Transformations.Transform,System.Boolean)"]
See Also