RhinoCommon API
PolylineCreateInscribedPolygon Method |
Create a regular polygon inscribed in a circle. The vertices of the polygon will be on the circle.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll)

public static Polyline CreateInscribedPolygon( Circle circle, int sideCount )
Public Shared Function CreateInscribedPolygon ( circle As Circle, sideCount As Integer ) As Polyline
Parameters
- circle
- Type: Rhino.GeometryCircle
The circle. - sideCount
- Type: SystemInt32
The number of sides
Return Value
Type: PolylineA closed polyline if successful, null otherwise.

Rhino for Windows
Supported in: 6.14