These are OpenSCAD modules to generate links based on a user-provided set of dimensions. Each link includes holes at the ends for attaching to other links using pins.
I use these modules to quickly create links for frames and mechanisms.
Use or Include "Links.scad" in your OpenSCAD file.
link_solid(length, width, thickness, hole_radius) generates a solid link with a hole at each end. Set hole_radius to 0 for no holes.
link_lite(length, width, thickness, hole_radius, centersegs) generates a link with cutouts evenly distributed along the length. The cutouts reduce weight and make for faster 3D printing. Parameter centersegs specifies the number of cutouts.