



Hi Bhupesh,
to my knowledge WPF 3D can't do "vertex colors" the way OpenGL or D3D can. As far as I know there are two options using WPF 3D:
 Generate a gradient texture that you will map to the geometry.
 Use a gradient brush  something like
http://stackoverflow.com/questions/10296582/absolutescalingalineargradientbrushtextureinwpf3d should work.
Alternatively, you can use OpenGL in .NET as well where you can just assign vertex colors to each vertex and OpenGL will interpolate the colors for you. Or just write a simple vertex shader (which does not seem to be possible in WPF3D either).
David



Hi DavecZ,
Thanks for replying.I have also tried this solution earlier.
But problem is,in this project each tetrahedrons are colored and combined.
So my question wasis there a way to color whole model3dgroup(combination of tetrahedrons).
What I mean is
I want to keep color white for each tetarhedrons.After combining all tetrahedrons I want give a color to whole set of model3dgroup.
Thanks & Regards,
Bhupesh



Well I guess you just want to color the convex hull then. In that case, use the library to compute the convex hull of your points (or you can extract the triangles from the Delaunay triangulation  these are the triangles that have no neighbors  it's
you leave out the vertex in a tetrahedron whose adjacency is set to null and you get the triangle). Then you apply the gradient brush to the hull model which you will only make visible when the geometry is collapsed.
David



HI David,
Thanks again for replying.
I just want help for this line
Then you apply the gradient brush to the hull model which you will only make visible when the geometry is collapsed.
Could you please give an example how to apply gradient brush to the hull model.






Thanks a lot David.Your previous reply worked.I calculated convex hull points of polygon and then applied gradient brush through texture coordinates.
Thanks Again,
Bhupesh

