Modular hose ============ .. raw:: html
⚙️ Spec sheet → — visual schematic and metrics measured from a real rendered STL.
Pure-Python port of BOSL2's ``modular_hose.scad``: the ball-and-socket segments of a modular "Loc-Line" style adjustable/coolant hose. :meth:`~bosl2.modular_hose.ModularHose.modular_hose` revolves a ball end, a socket end, or a full segment for the 1/4", 1/2" and 3/4" sizes; :meth:`~bosl2.modular_hose.ModularHose.modular_hose_radius` gives the bore radius. .. autoclass:: bosl2.modular_hose.ModularHose :members: .. GENERATED-EXAMPLES (regenerate via scratchpad/gen_examples.py -- do not edit below) Examples -------- These mirror the examples in BOSL2's ``modular_hose.scad``, rendered live through PythonSCAD. Examples that rely on BOSL2's attachment/anchor system, or on features not in this port, are omitted. .. rubric:: ``modular_hose`` 1/4" segment: .. pythonscad-example:: ModularHose.modular_hose(0.25, "segment").show() 1/2" segment: .. pythonscad-example:: ModularHose.modular_hose(0.5, "segment").show() 3/4" segment: .. pythonscad-example:: ModularHose.modular_hose(0.75, "segment").show() 1/2" ball end with a longer waist: .. pythonscad-example:: ModularHose.modular_hose(0.5, "ball", waist_len=15).show() 3/4" socket end: .. pythonscad-example:: ModularHose.modular_hose(0.75, "socket").show()