Constructor DisplayClip2
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
DisplayClip2(double[], double[])
Makes an outline.
public DisplayClip2(double[] xy, double[] bulges)
Parameters
xydouble[]The vertices as x, y pairs, the last joined to the first.
bulgesdouble[]The bulge of the edge leaving each vertex: the tangent of a quarter of its sweep, positive for an arc turning left; nought for a straight edge.
Exceptions
- ArgumentNullException
Thrown when an array is null.
- ArgumentException
Thrown when the vertices are fewer than two, or the bulges are not one to a vertex.
DisplayClip2(double[], double[], IReadOnlyList<DisplayClip2>)
Makes an outline of several rings, as a region with a hole or of several faces has.
public DisplayClip2(double[] xy, double[] bulges, IReadOnlyList<DisplayClip2> others)
Parameters
xydouble[]The vertices of the first ring as x, y pairs, the last joined to the first.
bulgesdouble[]The bulge of the edge leaving each vertex of the first ring.
othersIReadOnlyList<DisplayClip2>The other rings, each a DisplayClip2 of its own; null or empty for none. A point is inside the outline where it is inside an odd number of the rings.
Exceptions
- ArgumentNullException
Thrown when an array is null.
- ArgumentException
Thrown when the vertices are fewer than two, or the bulges are not one to a vertex.