Skip to content

Unwind fix#223

Open
Ben-PH wants to merge 5 commits intobschwind:mainfrom
Ben-PH:unwind_fix
Open

Unwind fix#223
Ben-PH wants to merge 5 commits intobschwind:mainfrom
Ben-PH:unwind_fix

Conversation

@Ben-PH
Copy link
Copy Markdown

@Ben-PH Ben-PH commented Apr 17, 2026

This PR handles some error cases. Some of them are deep exception catches. I'm not going to pretend I understand it all, as this was mostly done under the guidance of LLM.

The main thing, is that sometimes you get an an actual error (Chamfer failed: OCCT: There are no suitable edges for chamfer or fillet) and sometimes it's just silly "something failed" (Chamfer failed: IsDone = false)

This PR comes on top of PR #222

To demonstrate this:

before:
image
...repeated chamfers on the face after:

image

before this PR, if you try chamfering again on the middle square, it would just cause a sig-abort because a Standard_Failure exception would just run amok. This PR catches this exception (at least, in the case of chamfering), and gets it to cross the ffi as a rust error.

...happy days!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant