<font><font face="verdana,sans-serif">If you want to match only the overlapping parts of 2 meshes, maybe you should exclude the parts you know are not overlapping. If you don't know that in advance, maybe some iterative approach might work:<br>
1. Match meshes using all current points<br>2. Remove points which lie far away (relative wrt current points) from the overlap<br>3. goto 1<br></font></font><br><div class="gmail_quote">On Wed, Dec 14, 2011 at 15:52, Laurent <span dir="ltr"><<a href="mailto:l.paul@uclouvain.be">l.paul@uclouvain.be</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I want to match two meshes. For that, I use the IterativeClosestPoint. It<br>
works well, but can put a part of the moving mesh into the fixed mesh. I<br>
want to prevent that since the meshes shouldn't collide.<br>
I tried removing the "inside" points, but this appoach fails since the<br>
remaining points are correctly positionned.<br>
I also tried to translate the moving mesh in the direction of the deepest<br>
structure of the moving mesh that lies inside the fixed mesh. This is a fake<br>
solution because according to its shape, a part of the moving can re-enter<br>
inside the fixed mesh.<br>
Anyway, I'm looking for a penalty, or a constraint to prevent the moving<br>
mesh from colliding the fixed one.<br>
<br>
Thank for your ideas.<br>
<span class="HOEnZb"><font color="#888888">Laurent.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Match-two-meshes-without-collision-tp5074709p5074709.html" target="_blank">http://vtk.1045678.n5.nabble.com/Match-two-meshes-without-collision-tp5074709p5074709.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</font></span></blockquote></div><br>