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

Swept back wing #3

Open
benoitpaillard opened this issue Apr 30, 2020 · 4 comments
Open

Swept back wing #3

benoitpaillard opened this issue Apr 30, 2020 · 4 comments

Comments

@benoitpaillard
Copy link

Hi, thanks for the great tool.

Is it possible with your code to make swept back wings such as this :
https://rebrickable.com/parts/3586/wedge-plate-7-x-12-wing-left/

thanks !

@john-parton
Copy link
Collaborator

john-parton commented Jan 21, 2023

OK, so I have given this some thought, and I am of a few different minds.

I've created a branch here to explore some ideas: https://github.com/john-parton/LEGO.scad/tree/feature/python

At a high level it works like this:

  1. You create an SVG path of the outline of the part you want. (Note, I made an error here.)

Screenshot from 2023-01-21 00-15-07

  1. The code converts the SVG path to a polygon, extrudes it to the proper height, carves out the interior, figures out where studs needs to go, figures out where posts need to go, figures out if any notches need to be cut out into walls and then emits the SCAD file.

Screenshot from 2023-01-21 00-16-03

@john-parton
Copy link
Collaborator

I handled some really weird cases like parts with holes.

Screenshot from 2023-01-21 00-23-46

It also means that you can just feed in simple shapes and you don't need to worry about where the studs are going to be.

Circles are trivial

Screenshot from 2023-01-21 00-25-03

Ever want a pentagonal lego?

Screenshot from 2023-01-21 00-25-31

@john-parton
Copy link
Collaborator

Screenshot from 2023-01-21 00-30-18

@cfinke Thoughts? I can try to clean this up and submit it here or I can just create a new repo for this. I think this is pretty obviously outside the realm of "easy-to-use customizer for lego blocks" and more into "gone mad with power and wants to turn the universe into lego blocks."

@cfinke
Copy link
Owner

cfinke commented Jan 26, 2023

This is very cool! But it probably does deserve to live in its own repo, assuming it doesn't actually rely on LEGO.scad for anything.

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

3 participants