Creates a new torus.

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

Syntax

C#
[DefaultMethodAttribute]
public XMeshSprite AddTorus(
	float x,
	float y,
	float z,
	float innerRadius,
	float outerRadius,
	int sides,
	int rings,
	Color color,
	bool fill
)

Parameters

x
Type: System..::.Single
The X coordinate of the object.
y
Type: System..::.Single
The Y coordinate of the object.
z
Type: System..::.Single
The Z coordinate of the object.
innerRadius
Type: System..::.Single
Inner radius.
outerRadius
Type: System..::.Single
Outer radius.
sides
Type: System..::.Int32
Sides number.
rings
Type: System..::.Int32
Rings number.
color
Type: System.Drawing..::.Color
Color Color of the primitive.
fill
Type: System..::.Boolean
Indicates whether the object is filled.

Return Value

Returns the newly created object.

See Also