<html><div style='background-color:'><DIV>
<P>Hi Alex,</P>
<P>&nbsp; Oops, sorry everyone about the multiple responses to your previous question, hotmail was doing some strange things...</P>
<P>To get the diff between two polygonal models you could try a class I have put together: vtkImplicitPolyData. It treats a polygonal surface as an "implicit surface". I and others have used it with vtkClipPolyData to clip one set of polygons with another, so if your models inter-penetrate you could use it to see where. You could clip model A with model B, and vice versa. </P>
<P>Alternatively ...just another idea... Pass each model through an instance of vtkImplicitPolyData, then use vtkImplicitBoolean ... If I understand the documentation correctly VTK_UNION_OF_MAGNITUDES would give the equivalent of an "exclusive or" between the models, which could be what you want, ie everything&nbsp;except the intersection. This should work even if the models do not inter-penetrate? the above method would not. The union, intersection and difference operations could be interesting too...</P>
<P>By the way this class would also give you another way to generate offset surfaces, as per your earlier query.</P>
<P>I can e-mail you the class if you are interested. I am happy for it to get more testing.</P>
<P>&nbsp; regards, Dave Pont<BR><BR></P></DIV>
<DIV></DIV>
<DIV></DIV>&gt;From: Alexander Trum <A.TRUM@TERAPORT.DE>
<DIV></DIV>&gt;To: "vtkusers@public.kitware.com" <VTKUSERS@PUBLIC.KITWARE.COM>
<DIV></DIV>&gt;Subject: [vtkusers] How can i make a 'diff' of two arbitrary polygonal models? 
<DIV></DIV>&gt;Date: Fri, 08 Mar 2002 11:09:10 +0100 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Hello 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Is there a way in VTK to make a diff of two arbitrary polygonal models? 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Thanks, 
<DIV></DIV>&gt; Alex 
<DIV></DIV>&gt;&lt;&lt; a.trum.vcf &gt;&gt; 
<DIV></DIV></div><br clear=all><hr>Chat with friends online, try MSN Messenger: <a href='http://g.msn.com/1HM104201/x'>Click Here</a><br></html>