Attached is a 3dm file with 2 breps - a large and a small one. When I call BooleanDifference in the regular Rhino (v5) UI to subtract the small from the large one, it works well, as I expect.
However, when I use the same objects in a Brep.CreateBooleanDifference call in my plug-in (code is attached), it doesn’t work - a Brep object is returned but IsValid = false.
Does anyone know why this is so? Am I incorrect to assume that both of those commands should result in the same outcome?