<div>Hello,</div>
<div>&nbsp;</div>
<div>Try using vtkCubeSource, if that is what you need ( <a href="http://www.vtk.org/doc/release/4.2/html/classvtkCubeSource.html">http://www.vtk.org/doc/release/4.2/html/classvtkCubeSource.html</a>&nbsp;).</div>
<div>&nbsp;</div>
<div>It will give you the vtkPolyData for your cube. You can then assign colors for the cells manually through scalars.</div>
<div>&nbsp;</div>
<div>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.</div>
<div>&nbsp;</div>
<div>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.</div>
<div>&nbsp;</div>
<div>Regards,</div>
<div>&nbsp;</div>
<div>Deepak Roy<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 2/28/06, <b class="gmail_sendername">Joel McGraw</b> &lt;<a href="mailto:jpmcgraw1@cox.net">jpmcgraw1@cox.net</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hello,<br><br>I'm new to VTK and trying to create a cube (in C++) composed of &quot;cells&quot;<br>or blocks, each of which contains a numeric value that maps to a color.
<br>&nbsp;&nbsp; For any point x,y,z in the cube, I only want to see the color that<br>represents that point's value.<br><br>After looking at the examples and the VTK User's Guide I'm still at a<br>loss as to how to start.<br><br>Would some kind soul point me down the right path?
<br><br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ
</a><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></blockquote></div><br>