Click or drag to resize
Ab4d.SharpEngine logo

MeshUtilsGetStandardVerticesArray Method

GetStandardVerticesArray method returns an array of PositionNormalTextureVertex from the specified mesh. When mesh is StandardMesh or TriangleMesh with PositionNormalTextureVertex type then the vertices are returned directly. For other mesh types, the positions, normals and texture coordinates are retrieved by using GetDataChannelArray method.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntax
C#
public static PositionNormalTextureVertex[]? GetStandardVerticesArray(
	Mesh? mesh,
	bool calculateMissingNormals = true
)

Parameters

mesh  Mesh
mesh
calculateMissingNormals  Boolean  (Optional)
when true and when the mesh does not define the normals, then they are calculated. True by default.

Return Value

PositionNormalTextureVertex
array of PositionNormalTextureVertex or null when mesh is null or empty array when no positions are defined in the mesh
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.MeshUtils.GetStandardVerticesArray(Ab4d.SharpEngine.Meshes.Mesh,System.Boolean)"]

See Also