Plot a density plot in 3D with data points as {x, y, z, F[x,y,z]}?

Hi,

I have list of data points having elements {x, y, z, F(x, y, z)}, which I want to plot in 3D as density plot. (x, y, z) are the points on a section of surface of sphere in cartesian system and F(x, y, z) is an integer ranging from 0 - 12. Hence the o/p should be a section of spherical surface with colored domains.

ListDensityPlot3D is giving a funky graphic (a 3D section of the sphere) as points on the edge of the spherical surface are joining each other. Could there be a better way to plot this graphic. Attached file has the graphic obtained by ListDensityPlot3D.

Will be thanful for any suggestion.

LDP3D.nb (188 KB)

Here are some attempts:

val = Interpolation[Union[X] /. {x_, y_, z_, v_} :> {{x, y}, v}];
ListPlot3D[Map[Most, Union[X]], MeshFunctions -> (val[#1, #2] &), 
 Mesh -> {Range[0, 6]}, AxesLabel -> {x, y, z}]
ListDensityPlot[Map[Drop[#, {3}] &, Union[X]], AxesLabel -> {x, y}]
ListContourPlot[Map[Drop[#, {3}] &, Union[X]], AxesLabel -> {x, y}]

One way to visualize the different sections is to plot them individually.

X // GroupBy[Last] // Map[Most, #, 2] & // ListPlot3D[#, Mesh -> None] &

Thanks. I will try this, but why the surface is not continuous here. Would prefer a continuous surface with a blur transition of colors, as is the case with density plots.