C# Класс TriangleNet.Geometry.InputGeometry

The input geometry which will be triangulated. May represent a pointset or a planar straight line graph.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddHole ( double x, double y ) : void

Adds a hole location to the geometry.

AddPoint ( double x, double y ) : void

Adds a point to the geometry.

AddPoint ( double x, double y, int boundary ) : void

Adds a point to the geometry.

AddPoint ( double x, double y, int boundary, double attribute ) : void

Adds a point to the geometry.

AddRegion ( double x, double y, int id ) : void

Adds a hole location to the geometry.

AddSegment ( int p0, int p1 ) : void

Adds a segment to the geometry.

AddSegment ( int p0, int p1, int boundary ) : void

Adds a segment to the geometry.

Clear ( ) : void

Clear input geometry.

InputGeometry ( ) : System

Initializes a new instance of the InputGeometry class.

InputGeometry ( int capacity ) : System

Initializes a new instance of the InputGeometry class. The point list will be initialized with a given capacity.

Описание методов

AddHole() публичный Метод

Adds a hole location to the geometry.
public AddHole ( double x, double y ) : void
x double X coordinate of the hole.
y double Y coordinate of the hole.
Результат void

AddPoint() публичный Метод

Adds a point to the geometry.
public AddPoint ( double x, double y ) : void
x double X coordinate.
y double Y coordinate.
Результат void

AddPoint() публичный Метод

Adds a point to the geometry.
public AddPoint ( double x, double y, int boundary ) : void
x double X coordinate.
y double Y coordinate.
boundary int Boundary marker.
Результат void

AddPoint() публичный Метод

Adds a point to the geometry.
public AddPoint ( double x, double y, int boundary, double attribute ) : void
x double X coordinate.
y double Y coordinate.
boundary int Boundary marker.
attribute double Point attribute.
Результат void

AddRegion() публичный Метод

Adds a hole location to the geometry.
public AddRegion ( double x, double y, int id ) : void
x double X coordinate of the hole.
y double Y coordinate of the hole.
id int The region id.
Результат void

AddSegment() публичный Метод

Adds a segment to the geometry.
public AddSegment ( int p0, int p1 ) : void
p0 int First endpoint.
p1 int Second endpoint.
Результат void

AddSegment() публичный Метод

Adds a segment to the geometry.
public AddSegment ( int p0, int p1, int boundary ) : void
p0 int First endpoint.
p1 int Second endpoint.
boundary int Segment marker.
Результат void

Clear() публичный Метод

Clear input geometry.
public Clear ( ) : void
Результат void

InputGeometry() публичный Метод

Initializes a new instance of the InputGeometry class.
public InputGeometry ( ) : System
Результат System

InputGeometry() публичный Метод

Initializes a new instance of the InputGeometry class. The point list will be initialized with a given capacity.
public InputGeometry ( int capacity ) : System
capacity int Point list capacity.
Результат System