flachyjoe wrote: ↑Mon Dec 05, 2022 5:16 pm
Hi @uwestoehr,
The file I sent in my first message fails. A sketch edge is included in the UpToFace surface so distance is null and Pad fails with "UpToFace is too close".
I can't see any reason to disallow such behavior unless there is another case which results in an OCC failure. So I asked you for this.
As I wrote, when the distance between the sketch plane and the found plane is too low, OCC behaves unpredictable. It could sometimes create the pad, sometimes not. And even when it could create it, it might fail when you add later e.g. a fillet to the pad.
I can't see a problem with your file. When I take your file and use e.g. the "To last" mode, I get correctly get the error that the sketch is too close to the found face: The next face is Face3 (top face of the box). This face is coincident to the bottom line of the sketch.
You can test by yourself: disable the check
Code: Select all
if (distSS.Value() < Precision::Confusion())
and you will see that OCC cannot create the pad.