[vtkusers] Simplest way to cover an R3 Convex Hull?

Will Schroeder will.schroeder at kitware.com
Tue Jul 24 08:06:22 EDT 2001


Hi Phlip-

At 12:37 PM 7/23/2001 +0000, Phlip wrote:


>Except does anyone know how I can color each flat differently?

Color the "flats" by assigning a different cell scalar to each tetrahedron. 
(Ask the output for the number of cells; create a vtkScalars with that many 
scalar values; assign the vtkScalars to the CellData of the dataset.) Then 
when you use vtkDataSetMapper (or vtkGeoemtryFilter), the faces of the mesh 
will be extracted along with the scalar associated with the tetrahedron, 
and they will be colored differently. You might look at randomCellColors.tcl

A similar approach can be used to color vtkHull.

Will

William J. Schroeder, Ph.D
Kitware, Inc.
469 Clifton Corporate Parkway
Clifton Park, NY 12065
will.schroeder at kitware.com
1-518-371-3971 x102
1-518-371-3971 (fax)





More information about the vtkusers mailing list