|
CommonUtilsGetPositionsFromVertexBufferT Method |
Gets 3 positions from the specified vertex buffer array.
If vertex buffer type is not supported (not defined by DXEngine) then an exception is thrown.
To get a single position use the
GetPositionFromVertexBufferT(T, Int32) method.
Namespace: Ab3d.DirectXAssembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax public static void GetPositionsFromVertexBuffer<T>(
T[] vertexBuffer,
int index1,
int index2,
int index3,
out Vector3 p1,
out Vector3 p2,
out Vector3 p3
)
where T : struct, new()
Parameters
- vertexBuffer T
- vertex buffer array
- index1 Int32
- index of first position
- index2 Int32
- index of second position
- index3 Int32
- index of third position
- p1 Vector3
- first position as Vector3
- p2 Vector3
- second position as Vector3
- p3 Vector3
- third position as Vector3
Type Parameters
- T
- type of vertex buffer
See Also