[vtkusers] Re: vtkCollisionDetectionFilter , help

Samuel Marcos godofredoiii at gmail.com
Wed Jan 23 04:45:56 EST 2008


Hi,

Just to keep this post hot.
Goodwin, did you receive the code correctly? If there's any problem please
let me know.
Sorry for disturbing you.
Many thanks.


On Jan 17, 2008 3:27 PM, Goodwin Lawlor <goodwin.lawlor at ucd.ie> wrote:

> Samuel Marcos wrote:
> > Hi vtkusers,
> >
> > I'm working with vtkCollisionDetectionFilter but I am not able to figure
> > out the meaning of its output. I've used it with two planes (created by
> > hand and triangulated using Delaunay)  that intersect in some cells (see
> > figure attached). I then use vtkRemoveCellsFilter to remove intersected
> > cells from one of the Polydatas and it works fine (see second attached
> > figure). What I can't actually understand are the filter outputs.
> >
> > Figures: http://www.upload-images.net/imagen/0c8f548e19.jpg
> >
> >
> > As you can see in the figures, cells are numbered according to their
> > order in the Polys array. If I get the DataArrays that contain the
> > contacting cells of the two filter outputs I get:
> >
> > Output(0) contacting cells: 5 5 1 6 6 3 5 1 1 6 6 3
> > Output(1) contacting cells: 2 0 0 2 0 0 7 7 4 7 4 4
> >
> > My question is about those arrays. For what I've read, they represent
> > the relation between cells that collide in the two inputs. But as You
> > see in the figure, cell 6  of the first Polydata doesn't collide with
> > cell 2 of the second Polydata at all. What am I missing?
> >
> > Thanks in advance.
>
> Hi Samuel,
>
> You are missing nothing... could be a bug. Also the symetrical case
> (3,0) should not be in the output either- two false positives. Maybe
> something to do with tolerances but if you can send me your code I'll
> check it out.
>
> Thanks,
>
> Goodwin
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080123/d21e24a0/attachment.htm>


More information about the vtkusers mailing list