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.
Afficher le fichier Open project: filipkunc/GLGraphics Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

Process() public méthode

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
Résultat void

RegionIterator() public méthode

public RegionIterator ( Mesh mesh ) : System
mesh Mesh
Résultat System