BOSL2/Home.md
2019-04-24 20:09:36 -07:00

3.7 KiB

Belfry OpenScad Library Documentation

The library files are as follows:

Commonly Used

  • transforms.scad: The most commonly used transformations, manipulations, and shortcuts are in this file.
  • attachments.scad: Modules and functions to enable attachments.
  • primitives.scad: Attachment aware replacements for square, circle, cube, cylinder, and sphere.
  • shapes.scad: Common useful shapes and structured objects.
  • masks.scad: Shapes that are useful for masking with difference() and intersect().
  • threading.scad: Modules to make triangular and trapezoidal threaded rods and nuts.
  • paths.scad: Functions and modules to work with arbitrary 3D paths.
  • beziers.scad: Functions and modules to work with bezier curves.

Standard Parts

Miscellaneous

Terminology

For purposes of these library files, the following terms apply:

  • Left: Towards X-

  • Right: Towards X+

  • Front/Forward: Towards Y-

  • Back/Behind: Towards Y+

  • Bottom/Down/Below: Towards Z-

  • Top/Up/Above: Towards Z+

  • Axis-Positive: Towards the negative end of the axis the object is oriented on. IE: X-, Y-, or Z-.

  • Axis-Negative: Towards the negative end of the axis the object is oriented on. IE: X-, Y-, or Z-.

Common Arguments:

Args What it is
rounding Radius of rounding for interior or exterior edges.
chamfer Size of chamfers/bevels for interior or exterior edges.
orient Axis a part should be oriented along. Given as an XYZ triplet of rotation angles. It is recommended that you use the ORIENT_ constants from constants.scad. Default is usually ORIENT_Z for vertical orientation.
anchor Side of the part that is aligned with the origin. Given as a vector away from the origin. It is recommended that you use the directional constants from constants.scad. Default is usually CENTER.