<html><div style='background-color:'><DIV>
<P>Hi Alex,</P>
<P> 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 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> regards, Dave Pont<BR><BR></P></DIV>
<DIV></DIV>
<DIV></DIV>>From: Alexander Trum <A.TRUM@TERAPORT.DE>
<DIV></DIV>>To: "vtkusers@public.kitware.com" <VTKUSERS@PUBLIC.KITWARE.COM>
<DIV></DIV>>Subject: [vtkusers] How can i make a 'diff' of two arbitrary polygonal models?
<DIV></DIV>>Date: Fri, 08 Mar 2002 11:09:10 +0100
<DIV></DIV>>
<DIV></DIV>>Hello
<DIV></DIV>>
<DIV></DIV>>Is there a way in VTK to make a diff of two arbitrary polygonal models?
<DIV></DIV>>
<DIV></DIV>>Thanks,
<DIV></DIV>> Alex
<DIV></DIV>><< a.trum.vcf >>
<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>