Creates new XCylinderMesh class instance with the cylinder parameters and the XMaterial material.
Namespace:
SGP.XSpaceAssembly: SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825
Syntax
C# |
---|
public XCylinderMesh( float radius1, float radius2, float length, int stacks, float angle, XMaterial material ) |
Parameters
- radius1
- Type: System..::.Single
Radius of the cylinder at the end in the negative Z axis.
- radius2
- Type: System..::.Single
Radius of the cylinder at the end in the positive Z axis.
- length
- Type: System..::.Single
Defines the cylinder length.
- 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.