 |
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.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntaxpublic 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
PositionNormalTextureVertexarray of PositionNormalTextureVertex or null when mesh is null or empty array when no positions are defined in the mesh
See Also