 |
MeshGetDataChannelT(MeshDataChannelTypes) Method |
GetDataChannel returns an object with the data from the specified channel.
For example, for
Positions an array of Vector3 is returned with positions defined by this mesh.
When the type of the data does not match the specified type T, then ArgumentException is thrown.
Executing this method may take some time because the method may need to create new array objects and copy data from some other data structure (for example an array of
PositionNormalTextureVertex values).
Namespace: Ab4d.SharpEngine.MeshesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntaxpublic T GetDataChannel<T>(
MeshDataChannelTypes channelType
)
where T : class
Parameters
- channelType MeshDataChannelTypes
- channel type
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:Ab4d.SharpEngine.Meshes.Mesh.GetDataChannel``1(Ab4d.SharpEngine.Meshes.MeshDataChannelTypes)"]
Return Value
Tobject with the data from the specified channel
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Meshes.Mesh.GetDataChannel``1(Ab4d.SharpEngine.Meshes.MeshDataChannelTypes)"]
See Also