C# Class TriangleNet.Tools.RegionIterator

Iterates the region a given triangle belongs to and applies an action to each connected trianlge in that region. Default action is to set the region id.
Mostra file Open project: filipkunc/GLGraphics Class Usage Examples

Public Methods

Method Description
Process ( TriangleNet.Data.Triangle triangle ) : void

Set the region attribute of all trianlges connected to given triangle.

Process ( TriangleNet.Data.Triangle triangle, Action func ) : void

Process all trianlges connected to given triangle and apply given action.

RegionIterator ( Mesh mesh ) : System

Private Methods

Method Description
ProcessRegion ( Action func ) : void

Spread regional attributes and/or area constraints (from a .poly file) throughout the mesh.

This procedure operates in two phases. The first phase spreads an attribute and/or an area constraint through a (segment-bounded) region. The triangles are marked to ensure that each triangle is added to the virus pool only once, so the procedure will terminate. The second phase uninfects all infected triangles, returning them to normal.

Method Details

Process() public method

Set the region attribute of all trianlges connected to given triangle.
public Process ( TriangleNet.Data.Triangle triangle ) : void
triangle TriangleNet.Data.Triangle
return void

Process() public method

Process all trianlges connected to given triangle and apply given action.
public Process ( TriangleNet.Data.Triangle triangle, Action func ) : void
triangle TriangleNet.Data.Triangle
func Action
return void

RegionIterator() public method

public RegionIterator ( Mesh mesh ) : System
mesh Mesh
return System