Click or drag to resize
Ab4d.SharpEngine logo

MeshFactoryCreatePyramidMesh Method

CreatePyramidMesh creates a plane and returns StandardMesh with filled vertices array and index array.

Namespace: Ab4d.SharpEngine.Meshes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public static StandardMesh CreatePyramidMesh(
	Vector3 bottomCenterPosition,
	Vector3 size,
	string? name = null
)

Parameters

bottomCenterPosition  Vector3
center position of the bottom rectangle that defines the pyramid
size  Vector3
size of pyramid as Size3D
name  String  (Optional)
optional name for the mesh

Return Value

StandardMesh
StandardMesh with filled vertices array and index array
See Also