<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><blockquote type="cite" class="">Changing my code from TriangleTriangleIntersect() to TrianglesIntersect(), it<br class="">seems to still give me some headache.<br class=""></blockquote><blockquote type="cite" class="">I am still bit confused as why it returns 0, even if triangles go in to each<br class="">other.<br class=""></blockquote></div><div class=""><br class=""></div><div class="">Is “it” the vtkIntersectionPolyDataFilter::TriangleTriangleIntersect() method or the vtkTriangle::TrianglesIntersect() method?</div><div class=""><br class=""></div><div class="">If the former, then the triangles are again coplanar. Please see vtkIntersectionPolyDataFilter.cxx:2060, where the method exits without continuing the calculation.</div><div class=""><br class=""></div><div class="">If the latter, then the method should return true for the triangles intersecting. If it doesn’t then this is a bug.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Thomas J. Corona, Ph.D.<br class="">Kitware, Inc.<br class="">Senior R&D Engineer<br class="">21 Corporate Drive<br class="">Clifton Park, NY 12065-8662<br class="">Phone: 518-881-4443</div></div>

</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Jul 21, 2017, at 8:34 AM, nolvis <<a href="mailto:fgr@lordsofts.com" class="">fgr@lordsofts.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Changing my code from TriangleTriangleIntersect() to TrianglesIntersect(), it<br class="">seems to still give me some headache.<br class="">I am still bit confused as why it returns 0, even if triangles go in to each<br class="">other.<br class="">Am i missing something?<br class=""><br class="">Picture: <a href="http://imgur.com/a/PMcRk" class="">http://imgur.com/a/PMcRk</a><br class=""><br class="">//1st triangle coordinates<br class="">0.0, 0.0, 0.0<br class="">5.0, 0.0, 0.0<br class="">0.0, 5.0, 0.0<br class="">//2nd triangle coordinates<br class="">10.0, 5.0, 0.0<br class="">5.0, 10.0, 0.0 <br class="">1.0, 1.0, 0.0 <br class=""><br class=""><br class=""><br class="">--<br class="">View this message in context: <a href="http://vtk.1045678.n5.nabble.com/triangle-triangle-intersection-VTK-C-tp5744096p5744099.html" class="">http://vtk.1045678.n5.nabble.com/triangle-triangle-intersection-VTK-C-tp5744096p5744099.html</a><br class="">Sent from the VTK - Users mailing list archive at <a href="http://Nabble.com" class="">Nabble.com</a>.<br class="">_______________________________________________<br class="">Powered by <a href="http://www.kitware.com" class="">www.kitware.com</a><br class=""><br class="">Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" class="">http://www.kitware.com/opensource/opensource.html</a><br class=""><br class="">Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" class="">http://www.vtk.org/Wiki/VTK_FAQ</a><br class=""><br class="">Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" class="">http://markmail.org/search/?q=vtkusers</a><br class=""><br class="">Follow this link to subscribe/unsubscribe:<br class=""><a href="http://public.kitware.com/mailman/listinfo/vtkusers" class="">http://public.kitware.com/mailman/listinfo/vtkusers</a><br class=""></div></div></blockquote></div><br class=""></body></html>