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)
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 |
Examples, TInvertedDistanceWeightingSampler
Copyright ©2000-2024 Alex Denisov and the Graphics32 Team - Graphics32 2.0 - Help file built on 18 Feb 2024