C# Class TriangleNet.Geometry.InputGeometry

The input geometry which will be triangulated. May represent a pointset or a planar straight line graph.
显示文件 Open project: RegrowthStudios/VoxelRTS Class Usage Examples

Public Methods

Method Description
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.

Method Details

AddHole() public method

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.
return void

AddPoint() public method

Adds a point to the geometry.
public AddPoint ( double x, double y ) : void
x double X coordinate.
y double Y coordinate.
return void

AddPoint() public method

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.
return void

AddPoint() public method

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.
return void

AddRegion() public method

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.
return void

AddSegment() public method

Adds a segment to the geometry.
public AddSegment ( int p0, int p1 ) : void
p0 int First endpoint.
p1 int Second endpoint.
return void

AddSegment() public method

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.
return void

Clear() public method

Clear input geometry.
public Clear ( ) : void
return void

InputGeometry() public method

Initializes a new instance of the InputGeometry class.
public InputGeometry ( ) : System
return System

InputGeometry() public method

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.
return System