
Not applicable
05-17-2018
07:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, so I've been trying to figure out whether there is a cavity/hole in a layer of a BREP body, however the BREP Body.pointContainment() function doesn't seem to work correctly.
For example, I have a cube, with 2 cavities in it, one at x1, y1, z1 and another at x2, y2, z2, both 50mm apart. When I'm looking at layer 1, which is a layer at height z1, the body.pointContainment() method using point1(x1,y1,z1) and point2(x2,y2,z1) returns 2 for both of them, which means that they are both outside of the body. However, point2 should be returning 0, since there is no cavity at that coordinate. The same thing happens when I look at layer 2 which is at height z2.
Solved! Go to Solution.