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

Bug in Orientation or Wrong views? #10

Closed
snapo opened this issue Jun 11, 2022 · 2 comments
Closed

Bug in Orientation or Wrong views? #10

snapo opened this issue Jun 11, 2022 · 2 comments

Comments

@snapo
Copy link

snapo commented Jun 11, 2022

Hi ,
first i am very new to CAD so excuse my bug report if i made something wrong....

import cadquery as cq

res = cq.Workplane("front").box(50, 50, 50)

res = res + cq.Workplane("front").text("Front", 8, 26)
res = res + cq.Workplane("back").text("Back", 8, 26)
res = res + cq.Workplane("top").text("Top", 8, 26)
res = res + cq.Workplane("bottom").text("Bottom", 8, 26)
res = res + cq.Workplane("left").text("Left", 8, 26)
res = res + cq.Workplane("right").text("Right", 8, 26)

res = res.rotate((0, 0, 0), (1, 0, 0), 90) # Rotates the object 90 degree down so it works without touching in Cura Slicer and Super Slicer
cq.exporters.export(res, "test.step")
cq.exporters.export(res, "test.stl")
res = res.rotate((0, 0, 0), (1, 0, 180), 90)
show(res)

The rotate before exporting step and stl is required so it is aligned with 3d printer slicers.

The rotate before the show is required so i dont have to use the mouse to view to click on it.... so it looks good...

This puts everything in a good perspective....
image

The only problem is the LEFT/RIGHT are opposing.... (TOP, BOTTOM, FRONT, BACK are working correctly)
image

@snapo
Copy link
Author

snapo commented Jul 7, 2022

Closing it because cq chat is not welcoming VSCode users.... was fun to try

@snapo snapo closed this as completed Jul 7, 2022
@roipoussiere
Copy link
Owner

roipoussiere commented Sep 12, 2022

Sorry for the delay. Discussion on this issue continues here: bernhard-42/jupyter-cadquery#90

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