Click or drag to resize
Ab4d.SharpEngine logo

MeshUtilsTransformMesh(StandardMesh, Transform, Boolean) Method

Transforms the specified StandardMesh with the specified Transform and returns a new StandardMesh (the same StandardMesh 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.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public static StandardMesh TransformMesh(
	StandardMesh mesh,
	Transform? transform,
	bool transformNormals = true
)

Parameters

mesh  StandardMesh
StandardMesh that is transformed
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

StandardMesh
new StandardMesh with transformed Positions and Normals (in case transformNormals is true).
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.MeshUtils.TransformMesh(Ab4d.SharpEngine.Meshes.StandardMesh,Ab4d.SharpEngine.Transformations.Transform,System.Boolean)"]

See Also