<div dir="ltr"><div><div><div>Dear VTK users,<br></div><div><br></div><div>I am using <span style="font-family:monospace,monospace">vtkOBBTree </span><span style="font-family:arial,helvetica,sans-serif">class to find the intersection of a ray with a mesh.</span><span style="font-family:monospace,monospace"><br></span></div><div><span style="font-family:monospace,monospace"><br></span></div><div>I am interested in running this method in parallel for multiple rays on multiple CPUs or GPUs. <br></div><div><br></div><div>For time being, I have this Python snippet<br></div><div><br><span style="font-family:monospace,monospace">obb_tree = vtk.vtkOBBTree()<br>obb_tree.SetDataSet(vtkPolyData)<br>obb_tree.BuildLocator()<br>points = vtk.vtkPoints()<br>points.SetDataTypeToDouble()<br>cellIds = vtk.vtkIdList()<br>code = self.obb_tree.IntersectWithLine(pSource, pTarget, points, cellIds)</span><br></div><div><br></div><div><br></div><div><br></div><div>In this thread, I have a solution where I create several <span style="font-family:monospace,monospace">vtkOBBTree </span><span style="font-family:arial,helvetica,sans-serif">instance in different threads with openmp</span><span style="font-family:monospace,monospace"><br></span></div><div><br></div><div><a href="https://stackoverflow.com/questions/45589572/why-does-openmp-not-parallelize-vtk-intersectwithline-code">https://stackoverflow.com/questions/45589572/why-does-openmp-not-parallelize-vtk-intersectwithline-code</a></div><div><br></div><div>Is it the good solution wrt to performance?</div><div>Are there other VTK mechanism to speed-up computation?</div><div><br></div></div><div>Can VTK-m be a solution? Can VTK-m classes be used to build a <span style="font-family:monospace,monospace">vtkOBBTree </span><span style="font-family:arial,helvetica,sans-serif">equivalent</span><span style="font-family:monospace,monospace">?</span><br></div><div><br></div><div>Thanks<br></div><div><br></div><div><br></div>Regards,<br></div>Guillaume Jacquenot<br></div>