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
)
Visual Basic
Public Shared Sub AddCone ( _
	mesh As MeshGeometry3D, _
	radius As Double, _
	height As Double, _
	position As Point3D, _
	sides As Integer, _
	heightSegments As Integer _
)
JScript
public static function AddCone(
	mesh : MeshGeometry3D, 
	radius : double, 
	height : double, 
	position : Point3D, 
	sides : int, 
	heightSegments : int
)

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.

Return Value

The MeshGeometry3D representing the resulting cone.

See Also