[vtkusers] Please help me with triangle strps!
    Andrew J. P. Maclean 
    a.maclean at acfr.usyd.edu.au
       
    Thu Jun 20 02:47:02 EDT 2002
    
    
  
I have a series of m by n points along with their normals. I also have
generated m-1 triangle strips but I don't know how to combine the data
in order to render it.
 
E.g if  m = 3 and n = 5 then there are 15 points ( and their normals),
so, the triangle strips will be:
 
Strip 1:   5,  0,  6,  1,   7,  2,   8,  3,   9,  4
Strip 2: 10,  5, 11,  6, 12,  7, 13,  8, 14,  9
The numbers are the indexes of the points. ( I think that this is the
vtk format, where the first three indexes define the triangle and
subsequent ones correspond to each additional triangle)
 
How do I set up the vtkPolyData structure to incorporate the triangle
strips? 
If someone can point me to an example, I would really appreciate it.
 
Since I have the normals will Gourand shading be used automatically if I
pass the vtkPolydata to a mapper?
 
Thanks
   Andrew
___________________________________________
Andrew J. P. Maclean
Postal:
Australian Centre for Field Robotics
The Rose Street Building J04
The University of Sydney  2006  NSW
AUSTRALIA
 
Room:  106
Phone: +61 2 9351 3283
Fax:   +61 2 9351 7474
       http://www.acfr.usyd.edu.au/
 
___________________________________________
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020620/4a4a91e3/attachment.htm>
    
    
More information about the vtkusers
mailing list