Click or drag to resize
Ab4d.SharpEngine logo

MeshGetDataChannelArrayT Method

GetDataChannel returns an array with 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 array does not match the specified type T, then null is returned. 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.Meshes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax
C#
public T[]? GetDataChannelArray<T>(
	MeshDataChannelTypes channelType
)
where T : struct, new()

Parameters

channelType  MeshDataChannelTypes
channel type

Type Parameters

T

Return Value

T
object with the data from the specified channel
See Also