06-01-2023, 05:20 PM
(This post was last modified: 06-01-2023, 05:27 PM bysig.johnnson.)
[Python API]
I am using the Collision_Line() method to evaluate the distance from a specific point to the workpiece. The point I wish to sample from is potentially inside the tool. Is it possible to ignore collisions with certain objects when calling the Collision_Line() method? Or is there another similar method that does have this feature?
My current workaround it to move the tool out of the way then check the distance then put the tool back, but this bogs down when run for many targets.
There is no offset applied to the starting point of the line passed to Collision_Line() that would guarantee non-collision with the tool while still guarantee that collisions with the workpiece are detected.
I am using the Collision_Line() method to evaluate the distance from a specific point to the workpiece. The point I wish to sample from is potentially inside the tool. Is it possible to ignore collisions with certain objects when calling the Collision_Line() method? Or is there another similar method that does have this feature?
My current workaround it to move the tool out of the way then check the distance then put the tool back, but this bogs down when run for many targets.
There is no offset applied to the starting point of the line passed to Collision_Line() that would guarantee non-collision with the tool while still guarantee that collisions with the workpiece are detected.