 |
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.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
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