[vtkusers] Please help!.Surface reconstuction from point data set

Dominik Szczerba domi at vision.ee.ethz.ch
Fri Nov 16 15:47:41 EST 2007


I use alpha shapes for such purposes (with variable results...). You should 
find more info in the documentation of the vtkDelaunay class.
-- Dominik

On Friday 16 November 2007 20.29:01 sai pritham wrote:
> Hi All ,
>        Iam new to VTK.  I have a task of generating a surface from point
> data set. This point data set is present in text file containing x y and z
> coordinates.
> This might seem to basic for some. I am working in VC++.  Could some one
> please direct me to proper relevant resource for c++,.
>
> The link mentioned in this email doesn't seem to work.
>
> http://public.kitware.com/pipermail/vtkusers/attachments/20060526/257e3317/
>ReconstructSurface.obj
>
>
> The following snippet seems to be wrong with the code.
>
> int iNo = points->GetNumberOfPoints();
> for (int i=0; iInsertNextCell(1,&i);
> data->SetPolys(polys);
> polys->Delete();
>
> Could some one please help me with getting the proper code.
>
> I have done the following modification to the code
>
> int iNo = points->GetNumberOfPoints();
> for (int i=0; i<iNo;i++)
> {
>     iInsertNextCell(1,&i);
>     data->SetPolys(polys);
> }
> polys->Delete();
>
> The result is that i get a arbitrary surface and at an offset distrance
>  from the cloud of points.
>
> What i needed is the surface to be generated out of these points. Could
> some one direct me to proper code or resource doing this functionality.
>
>
> Thanks a lot for your time
>
> Thanks
> Sai
>
>
>
>       Flying to Bangalore or Bhopal? Search for tickets at
> http://in.farechase.yahoo.com
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers



-- 
Dominik Szczerba, Ph.D.
Computer Vision Lab CH-8092 Zurich
http://www.vision.ee.ethz.ch/~domi



More information about the vtkusers mailing list