pybosl2 (PythonSCAD port) 0.7.4 documentation
2-D Shapes
Initializing search
    pybosl2
    pybosl2
      • CSG & SDF backends
      • Colour operators (Colorable mixin) via Python's colorsys module
      • Constants provided by BOSL2 (BOSL2 constants.scad)
      • Return Distributors: line/grid/ring/arc/sphere/path copiers and reflected copies
      • Cut rounded edge/corner/face profiles into a cuboid (BOSL2 masks2d/masks3d)
      • Planar half-cuts and interlocking partitions (jigsaw/dovetail/... joints)
      • Statically typed shape constructors and backend-neutral solid facade
      • The texture() named-texture engine (BOSL2 skin.scad)
      • Affine-matrix reorient/apply and polar_to_xy (BOSL2 transforms.scad, coords.scad)
      • Drawing
      • 2-D Shapes
        • Circle
        • Square & Rect
        • Curves
        • Ops
      • 2-D Shapes
        • Circle
        • Square & Rect
        • Curves
        • Ops
      • 3-D Shapes
      • Native ops
      • Evaluate, analyze and build Bezier curves, paths, and surface patches (BOSL2 beziers.scad)
      • Metaball field primitives for VNF isosurface meshing (BOSL2 metaballs3d.scad)
      • NURBS curve/surface evaluation and meshing (de Boor)
      • p Abstract :class:`Path` base class for 2-D and 3-D path types
      • Object API for 2-D paths and regions
      • Path-rounding core: round_corners and smooth_path (BOSL2 rounding.scad)
      • Surface generators: sweep, path_sweep, skin, linear_sweep, rotate_sweep, spiral_sweep (BOSL2 skin.scad)
      • 3-D turtle graphics (the Turtle class)
      • VNF (vertices+faces) surface structure and grid meshing (BOSL2 vnf.scad)
      • Points, lines and polygon geometry helpers (BOSL2 geometry.scad)
      • General numeric helpers and numerical calculus (BOSL2 math.scad)
      • Class-based Quaternion representation and mathematics for 3-D rotations
      • Vector predicates and scalar-vector operations (BOSL2 vectors.scad)
      • Standard ball-bearing cartridge models 🛠
      • PCO-1810 / PCO-1881 bottle necks and caps 🛠
      • Modular cubical truss segments and trusses 🛠
      • Strongly-typed enums for the pybosl2 parts library
      • Gears: spur (with undercut), helical, herringbone, rack, ring, bevel, worm 🛠
      • Living (folding) hinges, knuckle hinges, and snap connectors 🛠
      • Hooks and hook-like parts (the ring hook) 🛠
      • Dovetail joints and snap-pin connectors 🛠
      • Linear (LMxUU) ball bearings and their pillow-block housings 🛠
      • Modular (Loc-Line style) ball-and-socket hose segments 🛠
      • NEMA stepper-motor models and mounting masks 🛠
      • The five Platonic solids as watertight polyhedra 🛠
      • Phillips, hex, Torx and Robertson driver-recess masks 🛠
      • Metric screws, nuts and screw holes built on the threading port
      • V-groove sliders and rails 🛠
      • Screw threading: threaded rods and nuts (ISO/trapezoidal/acme/square/buttress) 🛠
      • Tripod mount plates: RC2 🛠
      • FDM-optimised walls: sparse, corrugated, thinning and struts 🛠
      • Routed bundles of wires 🛠
      • Extrusions, bounding box, chain hull, and minkowski-based transforms
      • Visual specs →

    2-D ShapesΒΆ

    ⚙️ Spec sheet →  —  visual schematic and metrics measured from a real rendered STL.

    2-D primitives, polygons, curves, text and rounding operations.

    • Circle
    • Square & Rect
    • Curves
    • Ops
    Previous
    Drawing: path generators & renderers
    Next
    Circle
    © Copyright 2026, pinkfish.
    Created using Sphinx 8.2.3. and Sphinx-Immaterial