RhinoCommon API
CustomDisplayAddPolygon Method |
Adds a polygon to the drawing list. Polygons are not like Hatches, when you supply a concave
polygon, the shading probably won't work.
Namespace: Rhino.Display
Assembly: RhinoCommon (in RhinoCommon.dll)

public void AddPolygon( IEnumerable<Point3d> polygon, Color fillColor, Color edgeColor, bool drawFill, bool drawEdge )
Public Sub AddPolygon ( polygon As IEnumerable(Of Point3d), fillColor As Color, edgeColor As Color, drawFill As Boolean, drawEdge As Boolean )
Parameters
- polygon
- Type: System.Collections.GenericIEnumerablePoint3d
Points that define the corners of the polygon. - fillColor
- Type: System.DrawingColor
Fill color of polygon. - edgeColor
- Type: System.DrawingColor
Edge color of polygon. - drawFill
- Type: SystemBoolean
If true, the polygon contents will be drawn. - drawEdge
- Type: SystemBoolean
If true, the polygon edge will be drawn.

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.14