Generating a grid

Patric.Weis at mycrona.de Patric.Weis at mycrona.de
Fri May 12 03:50:14 EDT 2000


Hi John,

I do not know if there is a better approach, but for generating edges try
the following:

// Extract edges
vtkFeatureEdges *pEdges = vtkFeatureEdges::New();
pEdges->SetInput(pExtractGeometry->GetOutput());
pEdges->ManifoldEdgesOn();

// Edges as 3D tubes
vtkTubeFilter *pEdgeTubes = vtkTubeFilter::New();
pEdgeTubes->SetInput(pEdges->GetOutput());
pEdgeTubes->SetRadius(1.0);
pEdgeTubes->SetNumberOfSides(6);


Good luck!

Patric


Patric Weis
MYCRONA GmbH


- - - Original Message - - -



                                                                                                                                
                    jnorris at uiuc.                                                                                               
                    edu                  An:     vtkusers at public.kitware.com (Vtk Mailing List)                                 
                                         Kopie:                                                                                 
                    11.05.00             Thema:  Generating a grid                                                              
                    21:03                                                                                                       
                    Bitte                                                                                                       
                    antworten an                                                                                                
                    jnorris                                                                                                     
                                                                                                                                
                                                                                                                                



Hello,

In my visualization software, one of the techniques the user can use is to
generate a surface and/or surface grid of the data.  This is done with
vtkGeometryFilter.  The output of this filter is given to two different
mappers, one for the surface and one for the grid.  The reason is that the
surface and surface grid are independently controlled.  They can each have
their own colormap, or be a solid color (e.g. the surface is just blue, but
the grid uses a rainbow colormap).  The problem I'm having is that when
both
the grid and the surface are shown simultaneously, the grid looks "dashed."
As far as I can tell, this happens because parts of the grid are determined
to be behind the surface, and are therefore hidden.

Right now I render the grid by setting the actor property to show a
wireframe.
Increasing the line width helps sometimes, but more often than not it just
makes it uglier.  Is there a filter I could apply to the output of
vtkGeometryFilter to generate the edges of the polygons?  Then I could wrap
the resulting lines with vtkTubeFilter and solve my problem.  Is there a
better approach that I haven't thought of?

Thanks for any suggestions,
John
--
John Norris
Center for Simulation of Advanced Rockets
jnorris at uiuc.edu
http://www.uiuc.edu/ph/www/jnorris
--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------




--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------



More information about the vtkusers mailing list