 |
MeshFactorySetBoxVerticesArray Method |
SetBoxVerticesArray fills the PositionNormalTextureVertex array with position, normal and texture coordinates for the box with specified parameters.
If the specified vertexBufferArray is null or its Length is not 24, then a new array of PositionNormalTextureVertex with 24 items is created.
The method also sets the boundingBox of the positions.
Namespace: Ab4d.SharpEngine.MeshesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntaxpublic static void SetBoxVerticesArray(
Vector3 centerPosition,
Vector3 size,
ref PositionNormalTextureVertex[]?? verticesArray,
out BoundingBox? boundingBox
)
Parameters
- centerPosition Vector3
- box center position
- size Vector3
- box size
- verticesArray PositionNormalTextureVertex
- array of 24 PositionNormalTextureVertex items (by ref)
- boundingBox BoundingBox
- BoundingBox (out parameter)
See Also