Page 1 of 1

Interpolation method between nodes

Posted: Mon Mar 13, 2023 5:19 am
by jn3hms
Hello.

The description of IntensityGridSeries says "The colors between nodes are interpolated", but how do you complement it?

Is it a technique like "splines"? :oops:

Thank you.

Re: Interpolation method between nodes

Posted: Mon Mar 13, 2023 9:31 am
by ArctionKestutis
The graphic pipeline uses triangles (or lines) as primitives for rendering. Each surface is divided into multiple triangles, where user sets colors of vertices (triangle’s corners). Color inside of triangle is the linear interpolation of those three colors. To my knowledge barycentric coordinates used in all graphic shaders. The example could be found here.

Re: Interpolation method between nodes

Posted: Tue Mar 14, 2023 1:08 am
by jn3hms
Thank you for answering.

Is the interpolation method used in ContourLineType the same? :oops:

Re: Interpolation method between nodes

Posted: Tue Mar 14, 2023 8:57 am
by ArctionKestutis
In general, the contour line calculation uses same principles. However, in practice surface is divided into more triangles when contour line is calculated. Therefore, if grid is zoomed-in deeply the line of contour and fill maybe not perfectly aligned. this is not an issue if grid has good/high resolution and gradient Fill is used.