项目作者: bcsgh

项目描述 :
A tool for rendering .STL files as PostScript.
高级语言: C++
项目地址: git://github.com/bcsgh/stl-to-ps.git
创建时间: 2017-11-23T20:07:11Z
项目社区:https://github.com/bcsgh/stl-to-ps

开源协议:BSD 3-Clause "New" or "Revised" License

下载


Bazel rule for .scad and .stl files.

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).

MODULE.bazel

  1. bazel_dep(
  2. name = "com_github_bcsgh_stl_to_ps",
  3. version = ...,
  4. )

scad_binary

  1. load("@com_github_bcsgh_stl_to_ps//stl-to-ps:rule.bzl", "scad_binary")
  2.  
  3. 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

stl2pdf

  1. load("@com_github_bcsgh_stl_to_ps//stl-to-ps:rule.bzl", "stl2pdf")
  2.  
  3. 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

Setup (for development)

To configure the git hooks, run ./.git_hooks/setup.sh