Skip to content

Commit

Permalink
Add support for vector scale parameter in extrude-linear.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitris Papavasiliou committed Nov 9, 2019
1 parent ad7c8ba commit 07eca12
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/scad_clj/scad.clj
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,10 @@
(if (nil? twist) [] (list ", twist=" (rad->deg twist)))
(if (nil? convexity) [] (list ", convexity=" convexity))
(if (nil? slices) [] (list ", slices=" slices))
(if (nil? scale) [] (list ", scale=" scale))
(cond
(nil? scale) []
(sequential? scale) (list ", scale=[" (first scale) ", " (second scale) "]")
:else (list ", scale=" scale))
(when center (list ", center=true"))
(list "){\n")

Expand Down

0 comments on commit 07eca12

Please sign in to comment.