Open ferdymercury opened 4 years ago
RS has been contacted.
if vtk package is available in IronPython, one could use:
collide = vtk.vtkCollisionDetectionFilter()
collide.SetInputData(0, vpolydata1)
collide.SetInputData(1, vpolydata22)
collide.SetTransform(0, vtk.vtkTransform())
collide.SetMatrix(1, vtk.vtkMatrix4x4())
collide.SetBoxTolerance(0.0)
collide.SetCellTolerance(0.0)
collide.SetNumberOfCellsPerNode(2)
collide.SetCollisionModeToFirstContact()
collide.GenerateScalarsOn()
collide.Update()
collision = collide.GetNumberOfContacts() > 0
Instead of using DSC, choose a more efficient algorithm to calculate ROI overlap