Skip to content
Jon Gilbert edited this page Aug 14, 2023 · 4 revisions

OpenSCAD PVC Component Models

This is a library of modules and functions to create PVC pipe models within OpenSCAD.

Basic Usage

Models start by selecting a PVC specification. A range of public PVC specifications are inline to the library: they define diameters and thicknesses and thread sizing for existing piping.

Once a specification is selected, it can be reused over and over to create many individual PVC components.

Individual PVC parts can be quickly modeled and attached to each other using BOSL2's Attachment feature.

A simple example:

pvc = pvc_spec_lookup(schedule=40, dn="DN20");
pvc_flange(pvc)
    attach("B", "A")
        pvc_pipe(pvc, 30)
            attach("B", "A")
                pvc_elbow(pvc, 90)
                    attach("B", "A")
                        pvc_cap(pvc);

...would yield something that looks like:

There's other examples in the examples directory.

Installation

Info on how to install openscad_pvc and the external libraries needed can be found at the Installation wiki.

Library Reference

A full overview on selecting PVC specifications by schedule, the parts supported, and on joining individual PVC parts, can be found in the library reference document.

Clone this wiki locally