Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plate generation is broken #107

Closed
gahag opened this issue Mar 22, 2022 · 4 comments
Closed

Plate generation is broken #107

gahag opened this issue Mar 22, 2022 · 4 comments

Comments

@gahag
Copy link

gahag commented Mar 22, 2022

When trying to open any plate file generated with the attached json, OpenSCAD fails with:

ERROR: CGAL error in CGALUtils::applyUnion3D: CGAL ERROR: assertion violation! Expr: G.mark(v1,0)==G.mark(v2,0)&& G.mark(v1,1)==G.mark(v2,1) File: /usr/include/CGAL/Nef_S2/SM_overlayer.h Line: 294 

This may be related to #81 , but I'm not able to make it work by changing the number of columns. Please let me know if I can be of any help on debugging this issue, I would really like to build the keyboard.

json.txt

@yejianfengblue
Copy link

yejianfengblue commented Mar 23, 2022

You issue is not related to issue 81. The detail error message is different.

I just have basic openscad knowledge and not an expert in this generator. I guess something conflicts. A workaround is delete line 17532 cube([50, 50, 5], center=true); or put a asterisk * in front of it. But this way will leave a hole in your plate.

Screenshot_20220323_103945

@gahag
Copy link
Author

gahag commented Mar 23, 2022

Thanks a lot for putting your time into debugging this issue! Knowing the problematic line, I can try to work around it and maybe figure out how to fill the hole. Let me know if I can buy you a beer in appreciation :)

@yejianfengblue
Copy link

Find the sponsor link at the page bottom.

Add below line to the end of scad file to fill the hole

cube ([50, 50, 3], center=true);  // [x, y, z] is the cube size. the 3rd argument 3 is same as the linear_extrude height at line 2.  

plate1

plate2

@gahag
Copy link
Author

gahag commented Mar 25, 2022

It worked! Thanks a lot.

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

No branches or pull requests

2 participants