Creates new XTorusMesh class instance with the torus parameters and the XMaterial material.
Namespace:
SGP.XSpaceAssembly: SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825
Syntax
C# |
---|
public XTorusMesh( float innerRadius, float outerRadius, int sides, int rings, float angle, XMaterial material ) |
Parameters
- innerRadius
- Type: System..::.Single
Defines the inner radius of the torus.
- outerRadius
- Type: System..::.Single
Defines the outer radius of the torus.
- sides
- Type: System..::.Int32
Defines the number of sides in the transverse cut.
- rings
- Type: System..::.Int32
Defines the number of rings in the torus.
- angle
- Type: System..::.Single
Rotation angle.
- material
- Type: SGP.XSpace..::.XMaterial
The XMaterial material used for the mesh rendering.