[vtkusers] Cone with gradient color.

Jeff Baumes jeff.baumes at kitware.com
Tue Mar 30 10:22:08 EDT 2010


On Tue, Mar 30, 2010 at 9:53 AM, superzz <jxdw_zlf at yahoo.com.cn> wrote:
>
> Hello
> What is the easiest way to render a cone with gradient color. e.g: The top
> is red. The buttom is blue.
> I know this can be achieved by assigned different color to cells. But it is
> too complicated. I guess there must be some easier way.

I'd use vtkElevationFilter and use this scalar value to color to color the cone.

http://www.vtk.org/doc/nightly/html/classvtkElevationFilter.html

Jeff



More information about the vtkusers mailing list