Creates a new cylinder.
Namespace:
SGP.XSpaceAssembly: SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825
Syntax
C# |
---|
[DefaultMethodAttribute] public XMeshSprite AddCylinder( float x, float y, float z, float radius1, float radius2, float length, int stacks, 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.
- 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
Cylinder height.
- stacks
- Type: System..::.Int32
Defines the edges count along the main diagonal.
- color
- Type: System.Drawing..::.Color
Color Color of the primitive.
- fill
- Type: System..::.Boolean
Indicates whether the object is filled.