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

Update rotate_sweep to match changes to rotate_extrude #1539

Open
adrianVmariano opened this issue Jan 6, 2025 · 2 comments
Open

Update rotate_sweep to match changes to rotate_extrude #1539

adrianVmariano opened this issue Jan 6, 2025 · 2 comments

Comments

@adrianVmariano
Copy link
Collaborator

First, I changed it so that you can start an extrusion anywhere around
the circle you want to, using the "start" parameter.

    rotate_extrude(angle=90, start=45) square(10);

By itself, this is a small thing; you can achieve the same result by
slapping a rotate() around your extrusion.  However, it sets the stage
for the second change...


Second, I made it so that "start" defaults to zero if you specify
"angle", and defaults to 180 if you do not.  This means that all
extrusions that specify "angle"[*], specifically including those that
specify angle=360, start on the +X axis, to the right of the origin.

I wonder if this change will break anything.

@amatulic
Copy link
Contributor

amatulic commented Jan 6, 2025

If you omit 'angle' it defaults to 360. If I'm working with arrays of vertices rather than the builtin OpenSCAD geometries that nobody has access to, I would expect the zero vertex to be on the positive X axis always, even if I don't specify angle. What would be the point of putting it on the negative X axis?

@adrianVmariano
Copy link
Collaborator Author

adrianVmariano commented Jan 6, 2025

According to Jordan (I didn't verify) if you don't give an angle or give angle=360, then it starts on the X- axis. Otherwise, it starts on the X+ axis. That's the current behavior.

We would like for rotate_sweep(path,args); to give the same result as rotate_extrude(args)polygon(path);

I don't know what the current behavior of rotate_sweep is, but it doesn't support the start parameter Jordan has added.

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