Click or drag to resize
Ab4d.SharpEngine logo

MeshFactoryCreateSphereMesh Method

CreateSphereMesh creates a sphere and returns StandardMesh with filled vertices array and index array.

Namespace: Ab4d.SharpEngine.Meshes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public static StandardMesh CreateSphereMesh(
	Vector3 centerPosition,
	float radius,
	int segments = 30,
	string? name = null
)

Parameters

centerPosition  Vector3
center of the sphere
radius  Single
radius of the sphere
segments  Int32  (Optional)
number of segments that define the sphere
name  String  (Optional)
optional name for the mesh

Return Value

StandardMesh
StandardMesh with filled vertices array and index array
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Meshes.MeshFactory.CreateSphereMesh(System.Numerics.Vector3,System.Single,System.Int32,System.String)"]

See Also