Adds a cone to the specified MeshGeometry3D.

Namespace: Ico.Windows.Media.Media3D
Assembly: 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
)
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 _
)
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
)

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.

Return Value

The MeshGeometry3D representing the resulting cone.

See Also