Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Will findBRepUsingRay work with a temporary body that is not in the model window?
Eric
Solved! Go to Solution.
Will findBRepUsingRay work with a temporary body that is not in the model window?
Eric
Solved! Go to Solution.
Unfortunately, no. findBRepUsingRay is a method on the Component, so it will only find bodies contained in the component. There isn't an equivalent method for a set of transient brep bodies.
You could manually do the equivalent with the geometry APIs. You could first get the Body.boundingBox and disqualify the body if your ray does not intersect the bounds.
Then for each Face (until you find an intersection):
Kris