I have a collection of 3D points, and each is associated with a real number in [0,1]. A typical element looks like {{x,y,z},c} where c is the number to determine the color. (Sample code to generate random data below.) I would like to plot those points, coloring each according to ColorData["TemperatureMap"]. I have been unable to figure out how to get this to work, to arrange for ColorFunction->(???) to use that parameter c rather than x, y, or z to index into "TemperatureMap". This is likely straightforward for those
(unlike me) who have mastered
ColorFunction and ColorData.
SeedRandom[1]; n = 10;
pts = Table[RandomReal[{-1, 1}, {3}], {n}];
ptsc = Map[{#, RandomReal[]} &, pts];
