Adds a cone to the specified MeshGeometry3D.
Namespace: Ico.Windows.Media.Media3DAssembly: Ico3DControlsLibrary (in Ico3DControlsLibrary.dll) Version: 10.97.212.0 (10.97.212.00)
Syntax
C# |
---|
public static void AddCone(
MeshGeometry3D mesh,
double radius,
double height,
Point3D position,
int sides,
int heightSegments,
double topRadius,
bool capTop,
bool capBottom,
double sliceAngle,
UVTileMode tileMode,
Vector customTile
) |
Visual Basic |
---|
Public Shared Sub AddCone ( _
mesh As MeshGeometry3D, _
radius As Double, _
height As Double, _
position As Point3D, _
sides As Integer, _
heightSegments As Integer, _
topRadius As Double, _
capTop As Boolean, _
capBottom As Boolean, _
sliceAngle As Double, _
tileMode As UVTileMode, _
customTile As Vector _
) |
JScript |
---|
public static function AddCone(
mesh : MeshGeometry3D,
radius : double,
height : double,
position : Point3D,
sides : int,
heightSegments : int,
topRadius : double,
capTop : boolean,
capBottom : boolean,
sliceAngle : double,
tileMode : UVTileMode,
customTile : Vector
) |
Parameters
- mesh
- Type: System.Windows.Media.Media3D..::..MeshGeometry3D
The MeshGeometry3D which to add the cone to.
- radius
- Type: System..::..Double
The radius of the cone.
- height
- Type: System..::..Double
The height of the cone.
- position
- Type: System.Windows.Media.Media3D..::..Point3D
The Point3D specifying the center of the cone.
- sides
- Type: System..::..Int32
The number of sides used to build the cone. A greater number increases the smoothness of the cone.
- heightSegments
- Type: System..::..Int32
The number of horizontal divisions used to build the cone. A greater number increases the smoothness
of the cone.
- topRadius
- Type: System..::..Double
The radius for the top side of the cone. A value different than zero will generate a truncated cone.
- capTop
- Type: System..::..Boolean
Whether the cone should have a cap on the top side (only if truncated on that side).
- capBottom
- Type: System..::..Boolean
Whether the cone should have a cap on the top side (only if truncated on that side).
- sliceAngle
- Type: System..::..Double
An angle in degrees used to generate a sliced cone.
- tileMode
- Type: Ico.Windows.Media.Media3D..::..UVTileMode
A UVTileMode used to specify how coordintates from an applied texture would be mapped
onto the surface of the cone.
- customTile
- Type: System.Windows..::..Vector
A Vector used to specify the number of X and Y tiles when the specified tileMode
is Field Value
UVTileMode.Custom.
Return Value
The
MeshGeometry3D representing the resulting cone.
See Also