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: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
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
See Also