Giter VIP home page Giter VIP logo

Comments (6)

kirberich avatar kirberich commented on July 29, 2024

Can you send me the files you're trying to process so I can try and replicate this?

from gerber_to_scad.

Gadgeteering avatar Gadgeteering commented on July 29, 2024

Files attached

python main.py -t 0.6 -i 0.5 Gerber_BoardOutline.GKO Gerber_BottomPasteMaskLayer.GBP stencil.scad

Archive.zip

from gerber_to_scad.

kirberich avatar kirberich commented on July 29, 2024

Hm this works fine for me, both locally and on https://solder-stencil.me

Here's the output I get:
Screenshot 2023-04-23 at 13 08 04

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.

kirberich avatar kirberich commented on July 29, 2024

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.

kirberich avatar kirberich commented on July 29, 2024

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.

Gadgeteering avatar Gadgeteering commented on July 29, 2024

Thanks for the quick response

from gerber_to_scad.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.