Create a new polygon and combine it with the mesh

Namespace: Ico.Windows.Media.Media3D
Assembly: Ico3DControlsLibrary (in Ico3DControlsLibrary.dll) Version: 10.97.212.0 (10.97.212.00)

Syntax

C#
public static void AddPolygon(
	MeshGeometry3D mesh,
	Vector3D direction,
	Point3D position,
	double radius1,
	double radius2,
	double sliceAngle,
	int sides,
	Vector customTile,
	bool mirror
)
Visual Basic
Public Shared Sub AddPolygon ( _
	mesh As MeshGeometry3D, _
	direction As Vector3D, _
	position As Point3D, _
	radius1 As Double, _
	radius2 As Double, _
	sliceAngle As Double, _
	sides As Integer, _
	customTile As Vector, _
	mirror As Boolean _
)
JScript
public static function AddPolygon(
	mesh : MeshGeometry3D, 
	direction : Vector3D, 
	position : Point3D, 
	radius1 : double, 
	radius2 : double, 
	sliceAngle : double, 
	sides : int, 
	customTile : Vector, 
	mirror : boolean
)

Parameters

mesh
Type: System.Windows.Media.Media3D..::..MeshGeometry3D
The mesh to combine the polygon with
direction
Type: System.Windows.Media.Media3D..::..Vector3D
The direction of the new polygon: must be one of the main axis
position
Type: System.Windows.Media.Media3D..::..Point3D
The center of the polygon
radius1
Type: System..::..Double
The first radius of the polygon
radius2
Type: System..::..Double
The second radius of the polygon
sliceAngle
Type: System..::..Double
The angle (in degrees) used to clip the polygon
sides
Type: System..::..Int32
The number of segments in the polygon
customTile
Type: System.Windows..::..Vector
The number of UV tiles to use for custom tiling
mirror
Type: System..::..Boolean
Set to true to mirror the mesh

See Also