[vtkusers] Wrap a point cloud

Paul McIntosh paul.mcintosh at monash.edu
Sat Aug 31 19:20:34 EDT 2013


----- Original Message -----
> From: "David Doria" <daviddoria at gmail.com>
> To: "Paul McIntosh" <paul.mcintosh at monash.edu>
> Cc: vtkusers at vtk.org, "Ray9" <jmap at ua.pt>
> Sent: Saturday, 31 August, 2013 9:31:41 PM
> Subject: Re: [vtkusers] Wrap a point cloud
> 
> On Fri, Aug 30, 2013 at 5:49 AM, Paul McIntosh
> <paul.mcintosh at monash.edu> wrote:
> > Would this example not be the solution also?
> >
> > http://www.paraview.org/Wiki/VTK/Examples/Cxx/PolyData/ConvexHullShrinkWrap
> >
> > I am trying to apply it to filling holes in a scanned mesh. I am
> > more concerned about my model being watertight as all the missing
> > mesh was hidden from the scanner (there for not of interest to my
> > CFD simulation as it is not in the flow).
> >
> > Cheers,
> >
> > Paul
> 
> Paul,
> 
> ConvexHullShrinkWrap will make a convex mesh, which is almost never a
> good representation of a point cloud. That is, it totally ignores any
> points that are "inside" the bounds of any other set of points. It's
> easy enough to run - give it a try and see what you think on your
> data. If it works, great, and it is much easier than building an
> external package like Poisson Reconstruction.
> 
> David
> 

Hi David,

Yes - I got it work and it suits my purposes (plugging holes in mesh I am not too concerned about) but you are right it would not suit the original point cloud issue.

For others interested, I've attached an example and the code can be found here:

https://github.com/internetscooter/Vespa-Labs/tree/master/VespaCFD/WrapMesh

Cheers,

Paul
-- 
Dr Paul McIntosh
  Senior HPC Consultant, Technical Lead,
    Multi-modal Australian ScienceS Imaging and Visualisation Environment (www.massive.org.au)
       Monash University, Ph: 9902 0439 Mob: 0434 524935
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shrinkwrap_example.png
Type: image/png
Size: 46008 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130901/31b1c236/attachment.png>


More information about the vtkusers mailing list