rianadon / Cosmos-Keyboards

Taking Keyboards to the Final Frontier
https://ryanis.cool/cosmos
GNU Affero General Public License v3.0
240 stars 26 forks source link

"OpenCascade Error: 36219752" when generating case/shell #21

Open osa1 opened 7 months ago

osa1 commented 7 months ago

To repro, start with the default keeb and make these changes:

It fails with "OpenCascade Error: 20011240". Browser console isn't any more helpful, it just shows the same error.

osa1 commented 7 months ago

The problem seems to be with the "last row key count" setting. If I select anything other than "no last row" it generates.

rianadon commented 7 months ago

Ah another day, another OpenCascade error 😁

These don't happen from anything specific you do, just more of an odd combination of settings that trips up the CAD kernel.

If you open the developer console when the model is generating, you'll see the site prints Creating holes just before the error is logged. The next step after creating key holes is punching the connector holes out of the wall. Unlike the preview where the wall is kept as a shell, when exporting the wall is converted to a solid body. This makes OpenCascade stricter about little mishaps in the walls.

Since you say it's tied to the last row key count setting, it's probably something about the walls pinching in by the thumb cluster when those keys are removed that's causing the issue.