Bazle/skylark rules to process .scad
(a text based CAD file format) into
.stl
files (a file format used for 3d printing) into .ps
and .pdf
files
(a file formate used for 2d printing) as blueprints (a type of document used
for general manufacturing).
bazel_dep(
name = "com_github_bcsgh_stl_to_ps",
version = ...,
)
load("@com_github_bcsgh_stl_to_ps//stl-to-ps:rule.bzl", "scad_binary") scad_binary(name, deps, src, out)
Process .scad (OpenSCAD) files into .stl files.
ATTRIBUTES
Name | Description | Type | Mandatory | Default |
---|---|---|---|---|
name | A unique name for this target. | Name | required | |
deps | SCAD files that are used by src. | List of labels | optional | [] |
src | The top level SCAD file. | Label | required | |
out | The target file name. | Label | required |
load("@com_github_bcsgh_stl_to_ps//stl-to-ps:rule.bzl", "stl2pdf") stl2pdf(name, deps, out, script)
Process .stl files into .pdf files.
ATTRIBUTES
Name | Description | Type | Mandatory | Default |
---|---|---|---|---|
name | A unique name for this target. | Name | required | |
deps | The list of .stl files used by script . |
List of labels | optional | [] |
out | The target file name. | Label | required | |
script | The file describing the page layouts. | Label | required |
To configure the git hooks, run ./.git_hooks/setup.sh