Isosurface Generation Using VTK |
|||
VTK Basics |
|||
|
|||
3.5.1.3. Creating the Pipeline: vtkMarchingCubes / vtkContourFitler
You are here:
The pipeline so far is:
Studying the highlighted section: ·
“This
volumetric data should be viewable using any isosurface value. So, once the region of interest is extracted,
a specific isosurface value of the dataset should be chosen to view.” o
To generate this data, it is necessary to pick
an isosurface value in order to view a particular surface. From the author’s experience using the
Visible Woman dataset, skin can have a value around 860, some muscles can
have of 1100, and bone can have a value around 1250. One of two VTK classes may be used which is
either vtkMarchingCubes
or vtkContourFitler. As stated before, if a programmer has
access to the Patented binaries with Python wrappings, it will be more
preferable to use vtkMarchingCubes. With either choice, the same calls will be
made.
§
The only crucial configuration call to make is
to SetValue( int i, float value
). Since there is only one
surface that will be generated per actor, set i as 0 and value as 860,
1100, 1250, or whatever
value you may want. §
If it is possible to spare the extra rendering
cycles, it might be nice to compute normals in order to make the isosurface
look more realistic and pleasant, so call this function: ComputeNormalsOn(). In order to add this object to the pipeline, issue a form of the
following command:
|
|||
|
|||
Creating
the Pipeline: vtkExtractVOI |
|
Creating the Pipeline: vtkPolyDataMapper and vtkLODActor |
|