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: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
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)
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Meshes.MeshFactory.SetBoxVerticesArray(System.Numerics.Vector3,System.Numerics.Vector3,Ab4d.SharpEngine.Common.PositionNormalTextureVertex[]@,Ab4d.SharpEngine.Common.BoundingBox@)"]

See Also