Adds a cylinder to the specified 3D mesh geometry.
Namespace: Ico.Windows.Media.Media3DAssembly: Ico3DControlsLibrary (in Ico3DControlsLibrary.dll) Version: 10.97.212.0 (10.97.212.00)
Syntax
C# |
---|
public static void AddCylinder(
MeshGeometry3D mesh,
double radius,
double radius2,
Point3D position,
int sides,
double height,
int heightSegments,
bool capTop,
bool capBottom,
double sliceAngle,
UVTileMode tileMode,
Vector customTile
) |
Visual Basic |
---|
Public Shared Sub AddCylinder ( _
mesh As MeshGeometry3D, _
radius As Double, _
radius2 As Double, _
position As Point3D, _
sides As Integer, _
height As Double, _
heightSegments As Integer, _
capTop As Boolean, _
capBottom As Boolean, _
sliceAngle As Double, _
tileMode As UVTileMode, _
customTile As Vector _
) |
JScript |
---|
public static function AddCylinder(
mesh : MeshGeometry3D,
radius : double,
radius2 : double,
position : Point3D,
sides : int,
height : double,
heightSegments : int,
capTop : boolean,
capBottom : boolean,
sliceAngle : double,
tileMode : UVTileMode,
customTile : Vector
) |
Parameters
- mesh
- Type: System.Windows.Media.Media3D..::..MeshGeometry3D
The MeshGeometry3D which to add the generated cylinder.
- radius
- Type: System..::..Double
The first radius of the cylinder.
- radius2
- Type: System..::..Double
The second radius of the cylinder.
- position
- Type: System.Windows.Media.Media3D..::..Point3D
The center position of the cylinder in the parent coordinate system.
- sides
- Type: System..::..Int32
The number of sides for the cylinder.
- height
- Type: System..::..Double
The height of the cylinder.
- heightSegments
- Type: System..::..Int32
The number of vertical divisions of the cylinder.
- capTop
- Type: System..::..Boolean
Whether the cylinder has a cap on the top.
- capBottom
- Type: System..::..Boolean
Whether the cylinder has a cap on the bottom.
- sliceAngle
- Type: System..::..Double
The angle (in degrees) used to generate a sliced cylinder.
- tileMode
- Type: Ico.Windows.Media.Media3D..::..UVTileMode
The UVTileMode used when mapping a texture on the cylinder.
- customTile
- Type: System.Windows..::..Vector
A Vector used when the custom tile mode is specified.
See Also