[vtkusers] delaunay2D  issue
    Sebastien_MARAUX 
    maraux at ondim.fr
       
    Mon Jun 24 09:05:15 EDT 2002
    
    
  
forgot ->update(), sorry
I thought it was called by GetOutput()
when required.
  ----- Original Message ----- 
  From: Sebastien_MARAUX 
  To: vtk mailing list 
  Sent: Monday, June 24, 2002 2:57 PM
  Subject: [vtkusers] delaunay2D issue
  This byte of code does not produce any triangle.
  any idea about what I did wrong?
  tmpPolyData is a vtkPolyData;
  points coordinates range from 
  500000 to 1000000 in x and z,
   -5000 to 5000 in y
  //----------------------------------------------------------------------------------------
  cout <<"# points : " <<tmpPolyData->GetNumberOfPoints() <<endl; //49587
  cout <<"# polys : " <<tmpPolyData->GetNumberOfPolys() <<endl;   // 0
  vtkDelaunay2D *delaunay = vtkDelaunay2D::New();
  delaunay->SetInput(tmpPolyData);
  delaunay->SetTolerance(0.001);
  cout <<"# points : " <<delaunay->GetOutput()->GetNumberOfPoints() <<endl;  // 0, expected 49587
  cout <<"# polys : " <<delaunay->GetOutput()->GetNumberOfPolys() <<endl;    // 0, expected around 100 000
  //------------------------------------------------------------------------------------------
  Sebastien MARAUX
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020624/c0f45d1d/attachment.htm>
    
    
More information about the vtkusers
mailing list