[vtkusers] how to reduce the density of the mesh surface.

Dongqing Chen dqchen at cvip.louisville.edu
Fri Mar 14 17:19:08 EDT 2008


Dear all:

  I am working on generating a mesh surface of segmented liver CT images. Right now, I could generate the mesh surface and save it to stl file. But the numbers of polygon and vertices are very huge: 781052 and about 2.3M, respectively. The code patches are shown as follows.  Is there any way to make the surface mesh much coarser? 

***********************************************************************
  vtkTriangleFilter* triangles=vtkTriangleFilter::New();
  triangles->SetInput(smooth->GetOutput());
        
  vtkSTLWriter* stlWriter=vtkSTLWriter::New();
  stlWriter->SetInput(triangles->GetOutput());
  stlWriter->SetFileName("40g.stl");
  stlWriter->Write();
************************************************************************

Best Wishes,
-----------------------------------------------------------------
Dongqing Chen
Ph.D Candidate
Rm. 07, Paul C. Lutz Hall
Computer Vision & Image Processing (CVIP) Lab
Department of Electrical & Computer Engineering
Speed School of Engineering
University of Louisville
Louisville, KY. 40292
U.S.A
Email: dqchen at cvip.louisville.edu
Phone:+1-502-852-2789 (Lab)
            +1-502-852-6130 (Office)
-----------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080314/f3317dd6/attachment.htm>


More information about the vtkusers mailing list