Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32_ColorGradients🞂TGourandShadedDelaunayTrianglesSamplerClass

TGourandShadedDelaunayTrianglesSampler

Gourand shaded Delaunay triangles sampler.

Inheritance:TObject 🞂 TPersistent 🞂 TNotifiablePersistent 🞂 TCustomSampler 🞂 TCustomSparsePointGradientSampler 🞂 TCustomArbitrarySparsePointGradientSampler 🞂 TGourandShadedDelaunayTrianglesSampler

Declaration ​

pascal
TGourandShadedDelaunayTrianglesSampler = class(TCustomArbitrarySparsePointGradientSampler)

Description ​

TGourandShadedDelaunayTrianglesSampler samples smooth color gradients across irregular 2D point clouds using Delaunay triangulation and Gouraud triangle shading.

Mathematics & Algorithm ​

TGourandShadedDelaunayTrianglesSampler constructs a Delaunay triangulation network over input point sets Pi.

For any sampling point P:

  1. The enclosing triangle (P1,P2,P3) is located.
  2. Gouraud shading is performed across the triangle using barycentric color interpolation:
C(P)=λ1C1+λ2C2+λ3C3

References ​