Table of Contents

Class DisplayFill2

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

A filled area: a hatch, a solid, a wipeout. Its rings are filled by the even-odd rule, so a ring inside another is a hole.

public sealed class DisplayFill2 : DisplayItem2
Inheritance
DisplayFill2
Inherited Members

Constructors

DisplayFill2(IEnumerable<double[]>, bool, DisplayStyle, string, string)

Makes a fill.

Properties

Bounds

Gets the box that holds the item.

IsMask

Gets whether the fill is a mask drawn in the background colour.

Rings

Gets the rings, each as X and Y in turn.

Methods

Contains(double, double)

Gets whether a point is inside the fill by the even-odd rule.

DistanceTo(double, double)

Gets the distance from a point to the item, the shortest to any part that is drawn; the distance to the nearest edge for a fill, nought inside it.

Touches(DisplayBox)

Gets whether any part of the item touches a box, as a crossing selection asks.