Class EnclosedPolygonGroup
Represents a group of polygons where the exterior polygon encloses all interior polygons. All the polygons in the group must be disjoint. A typical use case of this class is to represent a polygon with holes inside it, where the exterior polygon is the outer boundary and the interior polygons are the holes.
Inherited Members
Namespace: OpenSvg
Assembly: OpenSvg.dll
Syntax
public class EnclosedPolygonGroup
Constructors
| Edit this page View SourceEnclosedPolygonGroup(Polygon)
Initializes a new instance of the EnclosedPolygonGroup class.
Declaration
public EnclosedPolygonGroup(Polygon exteriorPolygon)
Parameters
Type | Name | Description |
---|---|---|
Polygon | exteriorPolygon | The polygon that encloses all interior polygons. |
See Also
| Edit this page View SourceEnclosedPolygonGroup(Polygon, List<Polygon>)
Initializes a new instance of the EnclosedPolygonGroup class.
Declaration
public EnclosedPolygonGroup(Polygon exteriorPolygon, List<Polygon> interiorPolygons)
Parameters
Type | Name | Description |
---|---|---|
Polygon | exteriorPolygon | The polygon that encloses all interior polygons. |
List<Polygon> | interiorPolygons | The list of polygons inside the exterior polygon. |
See Also
Properties
| Edit this page View SourceExteriorPolygon
Gets or sets the polygon that encloses all interior polygons.
Declaration
public Polygon ExteriorPolygon { get; set; }
Property Value
Type | Description |
---|---|
Polygon |
See Also
| Edit this page View SourceInteriorPolygons
Gets the list of polygons inside the exterior polygon.
Declaration
public List<Polygon> InteriorPolygons { get; set; }
Property Value
Type | Description |
---|---|
List<Polygon> |
See Also
Methods
| Edit this page View SourceToPath()
Converts the EnclosedPolygonGroup to a Path.
Declaration
public Path ToPath()
Returns
Type | Description |
---|---|
Path | An Path representing the EnclosedPolygonGroup. |