I would like to use the thermometer color gradient in Graphics3D. Taking an example, I have the following:
Graphics3D[{Hue[1],
Polygon[{{1/2, 0, 0}, {1, 0, 0}, {5/4, Sqrt[3]/4, 0}, {1, Sqrt[3]/2,
0}, {1/2, Sqrt[3]/2, 0}, {1/4, Sqrt[3]/4, 0}}]}]
which gives a red hexagon as desired. However, I would like to use the thermometer colors, so that lower numbers correspond to the bluer spectrum of the color gradient. However, when I attempt to copy the code given here: https://reference.wolfram.com/language/ref/ColorData.html using
Graphics3D[{ColorFunction -> (ColorData["TemperatureMap"][1] &),
Polygon[{{1/2, 0, 0}, {1, 0, 0}, {5/4, Sqrt[3]/4, 0}, {1, Sqrt[3]/2,
0}, {1/2, Sqrt[3]/2, 0}, {1/4, Sqrt[3]/4, 0}}]}]
it outputs a colorless hexagon. How should I fix this, provided I want to plot data with colors accordingly on the thermometer gradient given values in the interval [-1,1]?
Thanks!