TVoronoiSampler

Ancestors

TPersistent
   |
TNotifiablePersistent
   |
TCustomSampler
   |
TCustomSparsePointGradientSampler
   |
TCustomArbitrarySparsePointGradientSampler

Description

A sparse point Voronoi tesselation.

Although the Voronoi tesselation can be used as sparse point color gradient interpolator, it is actually rather a tesselation to solit colors than a color gradient interpolation. However, it might still be relevant for several reasons. Compared to the TInvertedDistanceWeightingSampler, the TVoronoiSampler will be the destination for high power values. At the same time it is related to Delaunay triangulation, which can be used in combination with barycentric interpolation for smooth color gradients.

As the Voronoi sampler typically does not contain any algorithm for antialiasing itself, a TSuperSampler might be required for smooth edges


Figure 1: Output of a TVoronoiSampler with the underlying polygon vertices marked with circles (left: direct; right: supersampled)


Reference

Methods Properties Events
In TVoronoiSampler:
GetSample
In TCustomArbitrarySparsePointGradientSampler:
Add
Clear
SetColorPoints
SetPoints
In TCustomSparsePointGradientSampler:
Color
ColorPoint
Count
Point
In TCustomSampler:
FinalizeSampling
GetSampleBounds
HasBounds
PrepareSampling
In TNotifiablePersistent:
BeginUpdate UpdateCount OnChange
Changed
Create
Destroy
EndUpdate

See Also

Examples, TInvertedDistanceWeightingSampler