Click or drag to resize
Ab4d.SharpEngine logo

MeshFactoryCreateBoxMesh(Vector3, Vector3, String) Method

CreateBoxMesh creates a box and returns a StandardMesh with filled vertices array and index array.

Namespace: Ab4d.SharpEngine.Meshes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public static StandardMesh CreateBoxMesh(
	Vector3 centerPosition,
	Vector3 size,
	string? name = null
)

Parameters

centerPosition  Vector3
box center position
size  Vector3
box size
name  String  (Optional)
optional name for the mesh

Return Value

StandardMesh
StandardMesh with filled vertices array and index array
See Also