Polyline.CreateStarPolygon Method

PolylineCreateStarPolygon Method

Create a regular star polygon. The star begins at circle.PointAt(0) and the vertices alternate between being on circle and begin on a concentric circle of other_radius.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public static Polyline CreateStarPolygon(
	Circle circle,
	double radius,
	int cornerCount
)
Public Shared Function CreateStarPolygon ( 
	circle As Circle,
	radius As Double,
	cornerCount As Integer
) As Polyline

Parameters

circle
Type: Rhino.GeometryCircle
The circle.
radius
Type: SystemDouble
The radius of other circle.
cornerCount
Type: SystemInt32
The number of corners on the circle. There will be 2*cornerCount sides and 2*cornerCount vertices.

Return Value

Type: Polyline
A closed polyline if successful, null otherwise.
Version Information

Rhino for Windows

Supported in: 6.14
See Also