[vtkusers] Cube representation of data?
Joel McGraw
jpmcgraw1 at cox.net
Mon Mar 6 10:31:32 EST 2006
Deepak,
I just want to thank you for your response. I ended up building the
cube with glyphs and vtkPolyData. Unfortunately this doesn't scale very
well, but it'll do for now.
-Joel
Deepak Roy wrote:
> Hello,
>
> Try using vtkCubeSource, if that is what you need (
> http://www.vtk.org/doc/release/4.2/html/classvtkCubeSource.html ).
>
> It will give you the vtkPolyData for your cube. You can then assign
> colors for the cells manually through scalars.
>
> If you want a cube that is more custom built, you can explicitly build
> the vtkPolyData for the cube by creating the cells and points.
>
> Read the online VTK documentation for vtkPolyData and vtkCubeSource or
> you can also refer to the VTK user guide textbook if you have one. That
> should help you in achieving your task.
>
> Regards,
>
> Deepak Roy
>
>
> On 2/28/06, *Joel McGraw* <jpmcgraw1 at cox.net <mailto:jpmcgraw1 at cox.net>>
> wrote:
>
> Hello,
>
> I'm new to VTK and trying to create a cube (in C++) composed of "cells"
> or blocks, each of which contains a numeric value that maps to a color.
> For any point x,y,z in the cube, I only want to see the color that
> represents that point's value.
>
> After looking at the examples and the VTK User's Guide I'm still at a
> loss as to how to start.
>
> Would some kind soul point me down the right path?
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ <http://www.vtk.org/Wiki/VTK_FAQ>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
More information about the vtkusers
mailing list