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

Allow zero x or y spacing Workplane rarray #1603

Closed
lorenzncode opened this issue Jun 9, 2024 · 0 comments · Fixed by #1633
Closed

Allow zero x or y spacing Workplane rarray #1603

lorenzncode opened this issue Jun 9, 2024 · 0 comments · Fixed by #1633
Labels
consistency enhancement New feature or request

Comments

@lorenzncode
Copy link
Member

These are equivalent:

import cadquery as cq

r1 = cq.Workplane().rarray(2, 1, 5, 1).box(1, 1, 1)
r2 = cq.Workplane().rarray(2, 1000, 5, 1).box(1, 1, 1)

I would like to specify zero spacing for y for this case instead of arbitrary non-zero value.

r3 = cq.Workplane().rarray(2, 0, 5, 1).box(1, 1, 1)

It's a minor issue. To me, it would slightly improve readability of code if 0 was allowed and specified for spacing when count is 1.

Sketch allows it:

s = cq.Sketch().rarray(2, 0, 5, 1).rect(1, 1)
r = cq.Workplane().placeSketch(s).extrude(1)
@lorenzncode lorenzncode added the enhancement New feature or request label Jun 9, 2024
@adam-urbanczyk adam-urbanczyk linked a pull request Aug 11, 2024 that will close this issue
20 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consistency enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants