Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DSC: make more efficient #4

Open
ferdymercury opened this issue May 20, 2020 · 3 comments
Open

DSC: make more efficient #4

ferdymercury opened this issue May 20, 2020 · 3 comments
Labels
enhancement New feature or request RayStation RS interface layer

Comments

@ferdymercury
Copy link
Collaborator

Instead of using DSC, choose a more efficient algorithm to calculate ROI overlap

@ferdymercury ferdymercury added RayStation RS interface layer enhancement New feature or request labels May 20, 2020
@ferdymercury
Copy link
Collaborator Author

RS has been contacted.

@ferdymercury

This comment has been minimized.

@ferdymercury
Copy link
Collaborator Author

ferdymercury commented Sep 1, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request RayStation RS interface layer
Projects
None yet
Development

No branches or pull requests

1 participant