Hi,<br><br>Just to keep this post hot.<br>Goodwin, did you receive the code correctly? If there's any problem please let me know. <br>Sorry for disturbing you.<br>Many thanks.<br><br><br><div class="gmail_quote">On Jan 17, 2008 3:27 PM, Goodwin Lawlor <
<a href="mailto:goodwin.lawlor@ucd.ie">goodwin.lawlor@ucd.ie</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div>
<div class="Wj3C7c">Samuel Marcos wrote:<br>> Hi vtkusers,<br>><br>> I'm working with vtkCollisionDetectionFilter but I am not able to figure<br>> out the meaning of its output. I've used it with two planes (created by
<br>> hand and triangulated using Delaunay) that intersect in some cells (see<br>> figure attached). I then use vtkRemoveCellsFilter to remove intersected<br>> cells from one of the Polydatas and it works fine (see second attached
<br>> figure). What I can't actually understand are the filter outputs.<br>><br>> Figures: <a href="http://www.upload-images.net/imagen/0c8f548e19.jpg" target="_blank">http://www.upload-images.net/imagen/0c8f548e19.jpg
</a><br>><br>><br>> As you can see in the figures, cells are numbered according to their<br>> order in the Polys array. If I get the DataArrays that contain the<br>> contacting cells of the two filter outputs I get:
<br>><br>> Output(0) contacting cells: 5 5 1 6 6 3 5 1 1 6 6 3<br>> Output(1) contacting cells: 2 0 0 2 0 0 7 7 4 7 4 4<br>><br>> My question is about those arrays. For what I've read, they represent<br>
> the relation between cells that collide in the two inputs. But as You<br>> see in the figure, cell 6 of the first Polydata doesn't collide with<br>> cell 2 of the second Polydata at all. What am I missing?
<br>><br>> Thanks in advance.<br><br></div></div>Hi Samuel,<br><br>You are missing nothing... could be a bug. Also the symetrical case<br>(3,0) should not be in the output either- two false positives. Maybe<br>something to do with tolerances but if you can send me your code I'll
<br>check it out.<br><br>Thanks,<br><br>Goodwin<br><br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><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></blockquote>
</div><br>