<br><div class="gmail_quote">On Fri, Oct 2, 2009 at 1:17 PM, Bill Lorensen <span dir="ltr">&lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
You can append the two meshes with vtkAppendPolyData followed by a<br>
vtkCleanPolyData to remove duplicate points.<br>
<div><div></div><div class="h5"></div></div></blockquote><div><br>Dongqing,<br>
<br>I don&#39;t think you will get the results you are looking for with that method. It is assuming the meshes are strict subsets of each other. I&#39;m assuming you are looking for a nice manifold surface output. I put together an example here: <a href="http://www.rpi.edu/~doriad/VTK_List/SurfaceStitching/">http://www.rpi.edu/~doriad/VTK_List/SurfaceStitching/</a><br>
<br>There are two surfaces which are overlapping synthetic LiDAR scans of a discrete sphere. Using Stitching.cpp I took SphereScan1.vtp and SphereScan2.vtp and produced Stitched.vtp. You can see by looking at Stitched.vtp that the two surfaces are simply naively combined rather than &quot;stitched&quot;.<br>
<br>I think this is quite a useful thing to be able to do (namely to create 3d models from real life objects using real LiDAR scans). There are some volumetric methods for surface stitching (<a href="http://www-graphics.stanford.edu/software/vrip/">http://www-graphics.stanford.edu/software/vrip/</a>). I&#39;ve been looking at trying to get something like this into VTK but it&#39;s quite a project. Has anyone done anything similar to this with VTK and care to share/contribute it?<br>
<br clear="all">Thanks,<br><br>David<br> 
<br></div></div>