My Project
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
TriangleNet.Geometry.IPolygon Interface Reference

Polygon interface. More...

Inheritance diagram for TriangleNet.Geometry.IPolygon:
TriangleNet.Geometry.Polygon

Public Member Functions

void AddContour (IEnumerable< Vertex > points, int marker, bool hole, bool convex)
 
void AddContour (IEnumerable< Vertex > points, int marker, Point hole)
 
Rectangle Bounds ()
 Compute the bounds of the polygon.
 
void Add (Vertex vertex)
 Add a vertex to the polygon.
 
void Add (ISegment segment, bool insert=false)
 Add a segment to the polygon.
 
void Add (ISegment segment, int index)
 Add a segment to the polygon.
 
void Add (Contour contour, bool hole=false)
 Add a contour to the polygon.
 
void Add (Contour contour, Point hole)
 Add a contour to the polygon.
 

Properties

List< VertexPoints [get]
 Gets the vertices of the polygon.
 
List< ISegmentSegments [get]
 Gets the segments of the polygon.
 
List< PointHoles [get]
 Gets a list of points defining the holes of the polygon.
 
List< RegionPointerRegions [get]
 Gets a list of pointers defining the regions of the polygon.
 
bool HasPointMarkers [get, set]
 Gets or sets a value indicating whether the vertices have marks or not.
 
bool HasSegmentMarkers [get, set]
 Gets or sets a value indicating whether the segments have marks or not.
 

Detailed Description

Polygon interface.

Member Function Documentation

◆ Add() [1/5]

void TriangleNet.Geometry.IPolygon.Add ( Contour  contour,
bool  hole = false 
)

Add a contour to the polygon.

Parameters
contourThe contour to insert.
holeTreat contour as a hole.

Implemented in TriangleNet.Geometry.Polygon.

◆ Add() [2/5]

void TriangleNet.Geometry.IPolygon.Add ( Contour  contour,
Point  hole 
)

Add a contour to the polygon.

Parameters
contourThe contour to insert.
holePoint inside the contour, making it a hole.

Implemented in TriangleNet.Geometry.Polygon.

◆ Add() [3/5]

void TriangleNet.Geometry.IPolygon.Add ( ISegment  segment,
bool  insert = false 
)

Add a segment to the polygon.

Parameters
segmentThe segment to insert.
insertIf true, both endpoints will be added to the points list.

Implemented in TriangleNet.Geometry.Polygon.

◆ Add() [4/5]

void TriangleNet.Geometry.IPolygon.Add ( ISegment  segment,
int  index 
)

Add a segment to the polygon.

Parameters
segmentThe segment to insert.
indexThe index of the segment endpoint to add to the points list (must be 0 or 1).

Implemented in TriangleNet.Geometry.Polygon.

◆ Add() [5/5]

void TriangleNet.Geometry.IPolygon.Add ( Vertex  vertex)

Add a vertex to the polygon.

Parameters
vertexThe vertex to insert.

Implemented in TriangleNet.Geometry.Polygon.

◆ Bounds()

Rectangle TriangleNet.Geometry.IPolygon.Bounds ( )

Compute the bounds of the polygon.

Returns
Rectangle defining an axis-aligned bounding box.

Implemented in TriangleNet.Geometry.Polygon.

Property Documentation

◆ HasPointMarkers

bool TriangleNet.Geometry.IPolygon.HasPointMarkers
getset

Gets or sets a value indicating whether the vertices have marks or not.

Implemented in TriangleNet.Geometry.Polygon.

◆ HasSegmentMarkers

bool TriangleNet.Geometry.IPolygon.HasSegmentMarkers
getset

Gets or sets a value indicating whether the segments have marks or not.

Implemented in TriangleNet.Geometry.Polygon.

◆ Holes

List<Point> TriangleNet.Geometry.IPolygon.Holes
get

Gets a list of points defining the holes of the polygon.

Implemented in TriangleNet.Geometry.Polygon.

◆ Points

List<Vertex> TriangleNet.Geometry.IPolygon.Points
get

Gets the vertices of the polygon.

Implemented in TriangleNet.Geometry.Polygon.

◆ Regions

List<RegionPointer> TriangleNet.Geometry.IPolygon.Regions
get

Gets a list of pointers defining the regions of the polygon.

Implemented in TriangleNet.Geometry.Polygon.

◆ Segments

List<ISegment> TriangleNet.Geometry.IPolygon.Segments
get

Gets the segments of the polygon.

Implemented in TriangleNet.Geometry.Polygon.


The documentation for this interface was generated from the following file: