Failure to Cut box with halfspace that doesn't intersect box.
Michael Priestman
2006/03/21 12:50
I'm having a problem with the BRepAlgoAPI_Cut operation. I'm trying to cut a box with a planar halfspace (i.e. just a single unbounded plane). The matter of the halfspace is entirely above the box, therefore the "cut" operation should do nothing and just return the box.
However, an exception is thrown in TopTools_IndexedMapOfShape::FindKey() (see call stack below), and so the entire operation fails with an error status of 101. The exception is thrown because the map is empty yet the caller is asking for the item with key 1.
I also get the same problem when I move the plane to be entirely below the box (in which case the box should be completely clipped).