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] spread(n, spacing=10) should be equivalent to spread(n, spacing=[10, 0, 0]) #90

Open
ameuret opened this issue Jul 23, 2022 · 1 comment
Assignees
Labels

Comments

@ameuret
Copy link

ameuret commented Jul 23, 2022

I expect spread(n, spacing=10) to behave exactly as spread(n, spacing=[10, 0, 0])

That is:

image

Current behaviour

spread(n=3, spacing=10) cube(size=[3,2,1], center=true);

produces
image

@fe60
Copy link
Contributor

fe60 commented Aug 13, 2022

From documentation about spread():

spacing A 3D vector indicating which direction and distance to place each subsequent copy at.
I don't think it's a bug. The module expects a vector for parameter `spacing`.

xspread does what you are looking for.

spread(n=3, spacing=[10,0,0]) cube(size=[3,2,1], center=true);

ymove(5)
xspread(n=3, spacing=10) cube(size=[3,2,1], center=true);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants