The Wayback Machine - https://web.archive.org/web/20200914152415/https://github.com/CadQuery/cadquery/issues/288
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

rotate #288

Open
KeithSloan opened this issue Feb 26, 2020 · 3 comments
Open

rotate #288

KeithSloan opened this issue Feb 26, 2020 · 3 comments
Labels

Comments

@KeithSloan
Copy link

@KeithSloan KeithSloan commented Feb 26, 2020

https://pythonhosted.org/cadquery/classreference.html#cadquery.Workplane

Gives the parameters of rotate as
rotate(start, end, degrees)

But only mentions start (3 tuple of floats) and degrees (float)

Also not sure how the 3 floats specify an axis of rotation

Could you please supply an example.

I tried res = shape.rotate((.0,.0,.0), .30) but got error
rotate missing 1 required one positional parameter degrees

Thanks

@jmwright
Copy link
Member

@jmwright jmwright commented Feb 26, 2020

The pythonhosted link doesn't work for me. Are you looking for something like this?

https://github.com/CadQuery/cadquery/blob/master/examples/Ex015_Rotated_Workplanes.py

@KeithSloan
Copy link
Author

@KeithSloan KeithSloan commented Feb 26, 2020

Not sure what went wrong with me trying to post link. Try this one
https://cadquery.readthedocs.io/en/latest/classreference.html#cadquery.CQ.rotate

rotate

Okay fixed documentation is missing AxisEndPoint

@adam-urbanczyk
Copy link
Member

@adam-urbanczyk adam-urbanczyk commented Mar 2, 2020

Thanks for reporting, the docs need fixing. NB: to specify an axis you need two points (Arg1 and Arg2)

@adam-urbanczyk adam-urbanczyk added the docs label Mar 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
You can’t perform that action at this time.