[vtkusers] SurfaceReconstructionFilter Problem

Tim Hutton tim.hutton at gmail.com
Mon Dec 11 16:44:23 EST 2006


Hi Manuel,

Try powercrust instead. http://www.sq3.org.uk/powercrust/

SurfaceReconstructionFilter is well known to have problems on certain
types of data. Search the mailing list.

Tim

On 12/11/06, Manuel Ricardo Galindo Moreno <mrgalindo at puj.edu.co> wrote:
> Hello all!
>
> I have a problem using SurfaceReconstructionFilter, i am trying to reconstruct a spine point cloud see it here is the result:
>
> http://paginas.puj.edu.co/mrgalindo/spine.JPG
>
> I am not sure if the problem is the nature of the point cloud, because y have tried the same pice of code with other point clouds from the internet (hand,venus de milo) and it works just fine. Or the Surface reconstruction algortithm does not behave well with the geometries proper of the spine.
>
> I would deeply appreciate any suggestions!
>
> Here is my code:
>
> void SurfRecons(vtkPolyData* P)
> {
>         vtkSurfaceReconstructionFilter* SF=vtkSurfaceReconstructionFilter::New();
>         SF->SetInput(P);
>         SF->SetNeighborhoodSize(35);
>         SF->SetSampleSpacing(0.75);
>
>         vtkMarchingContourFilter* CF=vtkMarchingContourFilter::New();
>         CF->SetInputConnection(SF->GetOutputPort());
>         CF->UseScalarTreeOn();//consume mas memoria pero mejora el rendimiento
>         CF->SetValue(0,0);
>
>         vtkReverseSense* RS=vtkReverseSense::New();
>         RS->SetInputConnection(CF->GetOutputPort());
>         RS->ReverseCellsOn();
>         RS->ReverseNormalsOn();
>
> vtkGeometryFilter* geometryFilter=vtkGeometryFilter::New();
> geometryFilter->SetInput(RS->GetOutput());
> geometryFilter->MergingOn();
> geometryFilter->Update();
>
>         Display(geometryFilter->GetOutput());
>
> }
>
> _______________________________________________
> 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
>
>
>


-- 
Tim Hutton - http://www.sq3.org.uk

Take the Organic Builder challenge -
http://www.sq3.org.uk/Evolution/Squirm3/OrganicBuilder/



More information about the vtkusers mailing list