Click or drag to resize

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)
Since: 5.0
Syntax
public void AddPolygon(
	IEnumerable<Point3d> polygon,
	Color fillColor,
	Color edgeColor,
	bool drawFill,
	bool drawEdge
)

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.
See Also