Liking cljdoc? Tell your friends :D

scad-app.core


build-allclj

(build-all assets)
(build-all assets
           {:keys [report-fn build-fn]
            :or {report-fn print-report build-fn asset-io}
            :as options})

Build specified assets in parallel. Block until all are complete. This function sets up a single thread to handle UI output serially, with a closure for enqueing that output. The closure is passed down along with each model asset.

Build specified assets in parallel. Block until all are complete.
This function sets up a single thread to handle UI output serially, with a
closure for enqueing that output. The closure is passed down along with each
model asset.
sourceraw docstring

filter-by-nameclj

(filter-by-name regex assets)

Filter passed assets by a regular expression applied to their names.

Filter passed assets by a regular expression applied to their names.
sourceraw docstring

refine-allclj

(refine-all assets)
(refine-all assets {:keys [refine-fn] :or {refine-fn refine-asset} :as options})

Map refine-asset onto an iterable, possibly lengthening it.

Map refine-asset onto an iterable, possibly lengthening it.
sourceraw docstring

refine-assetclj

(refine-asset options asset)
(refine-asset {:keys [flip-chiral] :or {flip-chiral true} :as options}
              {:keys [chiral] :or {chiral false} :as asset}
              module-assets)

Take an asset for a model, with keyword options and an optional iterable of subordinate assets for OpenSCAD modules needed by the main asset. Return an iterable of one or two assets modified for chirality and bundled with the OpenSCAD modules. Both of these types of refinement are united here because they are interdependent. This in turn is because modules (e.g. screw holes) can themselves be chiral, in such a way that they need to be doubly mirrored to come out useful in a singly mirrored model.

Take an asset for a model, with keyword options and an optional iterable of
subordinate assets for OpenSCAD modules needed by the main asset.
Return an iterable of one or two assets modified for chirality and bundled
with the OpenSCAD modules. Both of these types of refinement are united here
because they are interdependent. This in turn is because modules (e.g.
screw holes) can themselves be chiral, in such a way that they need to be
doubly mirrored to come out useful in a singly mirrored model.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close