Skip to content
CameronBrooks11Public

About

InterLocking Orthogonal eXtrusions

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

iLOX

DOI

InterLocking Orthogonal eXtrusions

An OpenSCAD Library for Designing Tessellated Interlocking Surface Geometry for 3D Printing

Table of Contents

Dependencies

iLOX needs tessella 0.1.0, as include <tessella/tess.scad>. scadman.toml declares it and scadman.lock pins the commit. With scadman installed, run in the repo:

scadman sync

and put the folder scadman env prints on OPENSCADPATH, or use scadman run to start OpenSCAD with it there. CI and the docs site get tessella the same way.

Without scadman, clone tessella into your OpenSCAD libraries folder at the same tag, keeping the folder name lowercase:

git clone --branch v0.1.0 https://github.com/CameronBrooks11/tessella.git

For batch exports of parameter sets, scadbatch is optional.

Usage

Basic Usage

The examples/simpleUsage/ folder contains simpleUsageRadial.scad and simpleUsageRectangular.scad which demonstrate how to use high level modules of the library.

Tests

tests/run.sh runs the checks in tests/clearance, exports each example, each tensile specimen and each coupon in specimens/pilot/ladder.csv, exiting non-zero on any failure; OPENSCAD picks the binary. CI runs it on every pull request with OpenSCAD 2021.01 and a 2026 snapshot.

Concept

concept/ shows how the library's pieces build up to a joint. concept/direct-workflow is a sequence of scripts, from the unit cell through single extrusions to full tessellations, for both the rotational-radial and rectilinear-rectangular cases; later scripts include earlier ones. concept/ucell-prototyping holds experiments with other unit cell shapes.

Specimens

specimens/ holds the parts for physical testing:

  • specimens/tensile: strips for the test machine with a joint in the middle, built on concept/direct-workflow, and the clamp that holds them. See specimens/tensile/README.md.
  • specimens/pilot: small linear and radial coupons, one half or both in place, with a ladder of clearances and substrate thicknesses to export with scadbatch. See specimens/pilot/README.md.

Library Structure

iLOX.scad
src/
    cell2linear.scad
    cell2rot.scad
    ucell.scad
    utils/
        point_utils.scad
        regpoly_utils.scad
        sorted.scad
        viz_utils.scad
examples/
concept/
specimens/
    pilot/
    tensile/
tests/
docs/

iLOX.scad

The iLOX.scad file serves as the main entry point for the project, including the external tessella library for tessellation. It also includes the internal src/ SCAD files such as cell2rot.scad, cell2linear.scad, and ucell.scad to define the key functions for unit cell creation and rendering. It also includes modular, high-level implementations of both the rotational extrusion + radial tessellation and rectilinear extrusion + rectangular tessellation cases.

ucell.scad

This module provides essential functions and modules for defining and rendering unit cells. It includes tools for calculating the points of cells A and B based on given dimensions, handling transformations, applying a clearance between the cells, and managing optional negative polygons. Rendering capabilities are provided for visualizing the cells and their optional cutouts.

cell2rot.scad

This module builds on ucell.scad to render unit cells in a rotational context. Using rotational extrusion, it enables placement of cells A and B at specified positions with options for rotation, customization of colors, and inclusion of negative polygons for subtractive features.

cell2linear.scad

This module extends ucell.scad by enabling linear extrusion of unit cells. It supports placing cells A and B at designated positions with optional extensions, custom colors, and negative polygon adjustments for creating detailed features.

point_utils.scad

This file provides utility functions for point operations: sorting grid centers, placing points midway between them or at the centres of their triangles, and generating and shifting arcs of points.

sorted.scad

A helper file for implementing sorting utilities used by point_utils.scad for ordering points based on a specified key function. From dotSCAD; see License.

regpoly_utils.scad

This file contains functions for working with regular polygons: the central angle, half of it, and the apothem. These utilities assist in positioning and rotating regular polygons.

viz_utils.scad

This file has visualization utilities for rendering points and geometric elements, such as placing spheres at specified coordinates to help with the visual representation of data.

Documentation

The documentation site, built from docs/, is at https://cameronbrooks11.github.io/iLOX/: install, a first render, a reference for the modules, and the examples with live 3D views.

License

This project is licensed under the Mozilla Public License 2.0.

Third-party code:

Acknowledgements

  • Based on geometric principles and algorithms for tessellation and unit cell generation, inspired by recent advances in geometric computing and mechanical metamaterials.
  • Development is heavily nature-inspired by the various natural structures that allow for interconnection.

About

InterLocking Orthogonal eXtrusions

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages