Comments (6)
Can you send me the files you're trying to process so I can try and replicate this?
from gerber_to_scad.
Files attached
python main.py -t 0.6 -i 0.5 Gerber_BoardOutline.GKO Gerber_BottomPasteMaskLayer.GBP stencil.scad
from gerber_to_scad.
Hm this works fine for me, both locally and on https://solder-stencil.me
As you said you couldn't get poetry to work and manually generated a list of depenencies, I think something might not be quite right in your local setup - I'd recommend trying to get poetry to work properly
If you can't make that work, here's a requirements.txt for windows generated from the actual current dependencies:
asgiref==3.5.2
cairocffi==0.9.0
cffi==1.15.0
colorama==0.4.5
django-bootstrap3==15.0.0
django-environ==0.7.0
django==3.2.13
euclid3==0.01
gunicorn==20.1.0
mslex==0.3.0
numpy==1.22.4
pcb-tools==0.1.6
ply==3.11
prettytable==0.7.2
psutil==5.9.1
pycparser==2.21
pypng==0.0.19
pytz==2022.1
scipy==1.8.1
setuptools==65.6.0
solidpython==1.1.3
sqlparse==0.4.2
taskipy==1.10.2
tomli==2.0.1
from gerber_to_scad.
Ah sorry, ignore the above! I didn't see the extra options you added, with that I get the error as well. Lemme have a look into it!
from gerber_to_scad.
Alrighty found the problem - there was an issue with how points were compared, which in another part of the code that combines shapes together caused some duplicated points within shapes. Solidpython then got confused by the zero-length line segments between the duplicated points and returned those None values.
There's still a related bug/inconsistency in solidpython - either offset_points
should raise an error when it cannot offset the points (probably the right answer) or at least the type hint should indicate that it can return None values - but the main problem here was just how vectors got compared in my code.
The website is updated, so this should all be working fine for now - though I wouldn't recommend using those actual settings you pasted, as the holes will all merge together.
from gerber_to_scad.
Thanks for the quick response
from gerber_to_scad.
Related Issues (10)
- 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
- Unexpected Primitives - AMCommentPrimitive and AMVectorLinePrimitive HOT 1
- ModuleNotFoundError: No module named 'gerber' HOT 2
- 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.