Click or drag to resize
Ab4d.SharpEngine logo

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.Meshes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public 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