forge
forge copied to clipboard
Contour Plots
All most all of the forge objects have the option to let user provide per vertex attributes such as colors and alphas for rendering.
In the case of contour plots, I am not sure if per vertex colours or alphas makes any sense. One possible usage that i can see is per iosline color and alpha values.
@arrayfire/core-devel Any possible use cases of allowing per vertex colours/alphas ? An alternative to these per vertex attributes i thought off is using colormaps with isolines, which is the most common way of coloring contour lines from what i have seen so far.
Whats the difference between the two setColor
methods ?
@pavanky The one which takes enum as input calls the float version internally after computing color from enum.
As you mention, it is very common to color isolines. Also it is common for every N-th iso-line to be thicker. Beyond this, I've never seen any plot that has color/alpha settings for individual verticies.
@bkloppenborg
Lets dump alphas from discussion for now.
Color per isoline is one feature that will be needed, which can be done using separate color buffer or colormaps.
By thickness of Nth isoline, did you mean among all isolines, only one isoline will be made thicker than others or each isoline will have a thickness of it's own ?
Here are a few examples of things I've seen.
- Color dependent on z-value:
- Thickness of line (e.g. point size) dependent on z-value being positive:
- N-th iso-line being thicker (this is standard for topographic maps):
- Filled iso-surfaces
I don't think this should be in 1.0