Comments (1)
Hi, thanks for looking into that!
I've applied those changes, though I think the comment case should return an empty list rather than None, let me know if that gives you any trouble!
For the vector line primitive, basically the problem is that the gerber format is huge, and different footprints end up using completely different bits of the standard. Vector line isn't supported because I haven't come across a file before that needs it 😅
I've added some quick support for vector lines, though I'm not 100% convinced I did it right, because in your file they're used within a macro for creating rounded rectangles, and macro support is extremely basic because they are super complex, and they never came up when I built this for myself. It looks like kicad is using them a lot these days, whereas eagle (now fusion360) doesn't seem to ever use macros.
With this done, your file processes now, but it has quite a few issues - some of the rounded rectangles are reproduced too small, none of them are rotated, and a few of the smaller shapes have disappeared completely. I can't make any promises on if or when they might be supported better, but of course I'm very open to pull requests!
from gerber_to_scad.
Related Issues (11)
- Invalid format, is this a valid gerber file? HOT 1
- TypeError: offset_points() got an unexpected keyword argument 'inside' HOT 2
- Readme instructions are outdated HOT 1
- ModuleNotFoundError: No module named 'gerber' HOT 2
- TypeError: 'NoneType' object is not subscriptable conversion.py line 290 HOT 6
- does this support gerber from KiCAD? I don't see any .gko file HOT 1
- How to specify source file HOT 27
- Got IndexError: tuple index out of range when run the script HOT 3
- SCAD file preview is fine -> rendering contains only the ledge HOT 3
- Option for bottom layer HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gerber_to_scad.