Creates new XSphereMesh class instance with the sphere parameters and the XMaterial material.

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
public XSphereMesh(
	float radius,
	int slices,
	int stacks,
	float angle,
	XMaterial material
)

Parameters

radius
Type: System..::.Single
Defines the sphere radius.
slices
Type: System..::.Int32
Defines the edges count around the main diagonal.
stacks
Type: System..::.Int32
Defines the edges count along the main diagonal.
angle
Type: System..::.Single
Rotation angle.
material
Type: SGP.XSpace..::.XMaterial
The XMaterial material used for the mesh rendering.

See Also