Click or drag to resize
Ab4d.SharpEngine logo

LineUtilsGetNormalLinePositions(Mesh, Matrix4x4, Single) Method

Gets an array of Vector3 positions that define normal vector lines for the specified mesh.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public static Vector3[]? GetNormalLinePositions(
	Mesh mesh,
	Matrix4x4 transformMatrix,
	float normalsLength = 0f
)

Parameters

mesh  Mesh
mesh
transformMatrix  Matrix4x4
Matrix4x4 that is used to transform all normals
normalsLength  Single  (Optional)
length of each normal line. When zero (by default), then normalLength is 5% length of mesh's diagonal from bounding box)

Return Value

Vector3
array of Vector3 positions that define normal vector lines for the specified mesh
Exceptions
ExceptionCondition
ArgumentNullExceptionwhen mesh is null
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.LineUtils.GetNormalLinePositions(Ab4d.SharpEngine.Meshes.Mesh,System.Numerics.Matrix4x4,System.Single)"]

See Also