Skip to content

Allow plain Arrays and Vectors to be used as arguments#4

Open
flo-l wants to merge 1 commit intocjbissonnette:masterfrom
flo-l:allow-arys
Open

Allow plain Arrays and Vectors to be used as arguments#4
flo-l wants to merge 1 commit intocjbissonnette:masterfrom
flo-l:allow-arys

Conversation

@flo-l
Copy link
Copy Markdown

@flo-l flo-l commented Jun 16, 2014

openscad allows code without parameter names like this translate([-10,0,0]) cube([10,20,10]);, because typing them all the time is annoying.

This commit makes the same thing possible in RubyScad, so that translate([-10,0,0]) and cube([10,20,10]) just work as expected. It's also possible to use Vectors and even Matrices as arguments.

Furthermore also the Readme was updated to document the new behavior.

I hope I implemented the change not too hacky, feel free to tell me how to do it better. I'd be happy to update this pull requests if there are any problems/nits.

…ctions like openscad does. eg: translate([0,0,1]) or cube([12,12,24])
@andrew
Copy link
Copy Markdown

andrew commented Aug 25, 2014

It would be brilliant to get this merged in, especially for using color as you can then easily pass the name of a color like: color('red')

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

Successfully merging this pull request may close these issues.

2 participants