discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Haskell OpenScad library updated

MM
Mike Meyer
Fri, Apr 17, 2015 12:18 AM

To those using this, I've just uploaded 0.2.1.1.

This make the Model data types instances of Monoid, so you can use <> to
combine Model's. It also adds the '#' postfix apply function, so you can
write modifiers (translate, color, etc.) as postfix instead of prefix. So
instead of

union [translate (0, depth, 0) $ box width depth height,
box wall depth height]

you can write

box width depth height # translate (0, depth, 0)  <> box wall depth height

To those using this, I've just uploaded 0.2.1.1. This make the Model data types instances of Monoid, so you can use <> to combine Model's. It also adds the '#' postfix apply function, so you can write modifiers (translate, color, etc.) as postfix instead of prefix. So instead of union [translate (0, depth, 0) $ box width depth height, box wall depth height] you can write box width depth height # translate (0, depth, 0) <> box wall depth height