|  | 
| MeshFactoryCreateBoxMesh(Vector3, Vector3, Int32, Int32, Int32, String) Method | 
            CreateBoxMesh creates a box and returns a StandardMesh with filled vertices array and index array.
            
Namespace: Ab4d.SharpEngine.MeshesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
 Syntax
Syntaxpublic static StandardMesh CreateBoxMesh(
	Vector3 centerPosition,
	Vector3 size,
	int xSegments,
	int ySegments,
	int zSegments,
	string? name = null
)
Parameters
- centerPosition  Vector3
- box center position
- size  Vector3
- box size
- xSegments  Int32
- number of segments in the x direction
- ySegments  Int32
- number of segments in the y direction
- zSegments  Int32
- number of segments in the z direction
- name  String  (Optional)
- optional name for the mesh
Return Value
StandardMeshStandardMesh with filled vertices array and index array
 See Also
See Also