Friday, March 22, 2002

Centroid Method for Point Placement

Algorithm

Pseudocode

Loop over each element in a given triangulation:
If the element is modifiable:
Compute the element's centroid:
centroidx = (1/3)*(x1 + x2 + x3)
centroidy = (1/3)*(y1 + y2 + y3)
Compute the centroid's distribution function value:
centroiddf = (1/3)*(df1 + df2 + df3)
Compute the distances of each point in the element to the centroid.

If the least of these distances are greater than the distribution function value for the centroid:
Add the point/centroid to the list of candidate points.
Else
Set the element as unmodifiable.