Skip to content

Additive manufacturing: TPMS, spinodoids, hybrids, parts ready to print, 3MF and STEP, printability - #9

Merged
jdirr merged 13 commits into
mainfrom
claude/brave-hopper-20id3p
Dec 2, 2026
Merged

jdirr merged 13 commits into
mainfrom
claude/brave-hopper-20id3p

Conversation

@jdirr

@jdirr jdirr commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Additive manufacturing in morphoGen: architectures for printing, parts ready to print, the files of slicers, CAD programs and codes of structures, and the checks before printing (theory notes §140 to §147, FR-G29 to FR-G34, FR-E20, FR-E21, FR-M9, FR-I10, specification 1.254 to 1.262; 53 models).

  • TPMS (tpms, §140): ten surfaces, Schoen's I-WP and F-RD, Fischer–Koch S, the lidinoid, split P and I2-Y (the nodal forms of Lord & Mackay 2003) beside the gyroid, Schwarz P and D and Neovius; the network on the other side of the surface (variant: upper_network); graded TPMS (fraction_gradient, gradient_axis), each position at the level of its fraction.
  • Spinodoids (spinodoid, §141): levels of sums of waves of one wavelength (Kumar et al. 2020), isotropic or within cones about the axes (lamellar, columnar, cubic), uniform or graded, periodic in periodic boxes; their specific surface within 1 to 2 % of Rice's formula.
  • Hybrids (hybrid, §142): any two models with implicit functions blended across a plane, a cylinder or a sphere by a sigmoid of the distance (Yang et al. 2014), their functions bounded before they are blended.
  • Parts ready to print (part, §143): an infill in a box, a cylinder, a tube, a sphere or a closed surface read from a file (STL, OBJ, PLY...), with a shell, the skins of a sandwich and the supports of a beam; conformal TPMS wrapped around an axis; the signed distance to a closed triangle surface (morphogen.mesh.distance).
  • Strut lattices (§144): octahedral and rhombic dodecahedral cells, reinforcements along an axis (bcc-z, fcc-z), struts bent into circular arcs, cells of one's own struts.
  • Bodies, 3MF and STEP (§145): the closed bodies of the phases tiling the box (outputs.surface: {formats, phases, unit}), layers of TPMS for several materials (tpms_layers), one 3MF package with a material per body, STEP (AP214) files of solids or of faceted shells.
  • LS-DYNA and ANSYS (§146): the voxel and tetrahedral meshes as keyword files (.k) and APDL inputs (.ans), with a part per phase, the elastic materials and the sets of the faces.
  • Printability (§147, morphogen.analysis.printability, the section printability: of a run): walls and holes against the process, overhangs along the six directions of the axes, islands and trapped powder; a verdict and its reasons.
  • The interface: the tab Additive manufacturing (section Create), from the design of a part to its STL, 3MF and STEP files, and the printability of any morphology of the workspace.
  • Templates graded_tpms, spinodoid, hybrid, part and tpms_layers, and the family Additive manufacturing of the gallery; the public interface written again (tests/public_api.txt) and recorded in the change log.

Verification. OpenCascade 7.8 reads the STEP solids back as valid solids at their volumes (a gyroid sheet cut by its box, its void, an octet lattice of 63 168 faces; checked locally, the test is skipped where OpenCascade is not installed, as in the CI); the bodies of complementary phases tile the box within 10⁻¹²; the overhangs of a horizontal cylinder against their exact share; the islands and the closed cavities of a test part; the specific surface of spinodoids against Rice's formula.

The CI of the branch (run 46780675657, by workflow_dispatch on af8301f) is green on Ubuntu (Python 3.12, and 3.14 with the slow tests), Windows and macOS; the last commit rewords the documentation only.


Generated by Claude Code

claude added 13 commits December 1, 2026 23:22
Six more nodal surfaces for the model tpms (theory notes §140, FR-G29, specification
1.254): Schoen's I-WP and F-RD, Fischer–Koch S, the lidinoid, split P and I2-Y (Lord &
Mackay 2003), their derivatives written out for the first-order distance; the network on
the other side of the level (variant upper_network); graded TPMS (fraction_gradient along
gradient_axis), each position at the level of its fraction, the slope of the level in the
distance. The kernels take a table of levels; the calibration of the cell is cached. The
public interface written again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
The model spinodoid (theory notes §141, FR-G30, specification 1.255): the level of a sum
of waves of one wavelength and random phases (Cahn 1965; Soyarslan et al. 2018; Kumar et
al. 2020), their directions uniform on the sphere or within cones about the axes
(lamellar, columnar, cubic); the network, the sheet or the other network at a level of
the normal law, a volume fraction or a profile of fractions along an axis (graded); in
periodic boxes the modes of a shell about the wavelength. The specific surface of Rice's
formula in the theory; grids evaluated plane by plane as products of complex matrices.
The model in the registry, the interface, the sections and the per-model tests; the count
of the models (50) in the documentation; the public interface written again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
The model hybrid (theory notes §142, FR-G31, specification 1.256): two models blended
across a plane, a cylinder or a sphere by a sigmoid of the distance to it (Yang et al.
2014; Top6Meta's hybrids), the first below the plane or inside, the second beyond. Any
two models with implicit functions: their functions bounded by D tanh(phi / D) before
they are blended, so that a first-order distance that grows far from its surface does not
outweigh the other model; the slope of the blend bounded by max(L_1, L_2) + D / 2w. In the
registry, the interface, the sections and the per-model tests; 51 models in the
documentation; the public interface written again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
The model part (theory notes §143, FR-G32, specification 1.257): any two-phase model
filling a box, a cylinder, a tube, a sphere or a closed surface read from a file (STL
binary or ASCII, other formats by meshio, fitted into the domain on request), with a
shell along the boundary, the skins of a sandwich and the supports of a beam; its function
a maximum and minima of signed distances. mesh.distance: the signed distance to a closed
triangle surface on a grid, exact within a band (the closest points of Ericson), its
inside by the parity of crossings, interpolated trilinearly. Conformal TPMS: the cells of
tpms wrapped around an axis (cells_around), in cylindrical coordinates, for tubes and
columns. 52 models in the documentation; the public interface written again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
The formula of the module of the spinodoids (|k_i|) was read by Sphinx as a substitution:
it is a literal block, and the helper of the TPMS quotes its expressions. The site builds
without warnings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
…ents, curves

The strut lattices (theory notes §144, FR-G33, specification 1.258): the cells
octahedral (the octahedra of the face centres, stretching-dominated) and
rhombic_dodecahedron (the Voronoi cells of the fcc lattice, bending-dominated), their
rigidity in the frames and the tool of the interface; struts added along an axis (the
edges of the cube, or its axis: bcc-z, fcc-z, reinforced octet and octahedral cells);
the struts inside the cell bent into circular arcs (circular octahedra); custom cells of
struts given by their ends. A cell is a CellSpec (cached under its name when plain); the
volume fraction is solved for all; the buckling of hierarchical lattices keeps to named
cells. The public interface written again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
…MF, STEP

The closed bodies of phases that share their interfaces and tile their box
(mesh.surface.phase_surfaces: the functions at the nodes, faces included, mirrored about
their level beyond them, the caps moved back onto the faces, coincident vertices merged);
layers of TPMS (tpms_layers: phases of several materials in the bands of the levels of a
surface or a network); io.printing: 3MF packages of several bodies with a base material
each, STEP files (AP214) of solids (manifold solid breps of planar advanced faces bounded
by shared edges, one per connected piece), read by OpenCascade as valid solids at their
volumes, or of faceted shells; outputs.surface {formats: stl, 3mf, step; phases; unit}
(theory notes §145, FR-G34, FR-E20, specification 1.259). Templates graded_tpms,
spinodoid, hybrid, part and tpms_layers, with their cards and images in a gallery family
Additive manufacturing; 53 models in the documentation; the public interface written
again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
io.structural (theory notes §146, FR-E21, specification 1.260): the voxel and
tetrahedral meshes as LS-DYNA keyword files (nodes and solid elements in fixed fields, a
part per phase with its section and elastic material, the node sets of the faces; linear
elements) and ANSYS Mechanical APDL inputs (SOLID185, SOLID285 or SOLID187, the
materials, a command per node and element, the components of the faces), from
io.save_mesh and the mesh outputs of a run (k, ans) with the elastic materials of its
homogenization. The public interface written again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
analysis.printability (theory notes §147, FR-M9, specification 1.261): the thinnest walls
and holes of a realization or an image against the process and the resolution of its
voxels (local thickness, first percentiles and medians), its overhangs below the
self-supporting angle along the six directions of the axes (the implicit surface, or the
smoothed signed distance of the voxels, whose terraces halve the overhangs), the islands
of the solid that do not reach the build plate and the closed cavities that trap powder;
a verdict, the need of supports and the reasons. The section printability of a run writes
a JSON report per realization and the columns printability.*. Checked against a
horizontal cylinder. The public interface written again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
The tools Part for printing (a TPMS, strut lattice or spinodoid at a fraction or graded,
in a box, cylinder, tube or sphere with a shell, skins and supports: its morphology in
the workspace, its printability, its bodies as STL, 3MF and STEP, the void as a second
body) and Printability (the checks of any morphology), in the section Create (FR-I10,
specification 1.262). The bodies of complementary phases give the nodes where their
functions vanish to one phase, the most inside: a part cut by the faces of its box tiles
it too. The search of the page: "stl" finds the new tool first, "surface stl" the
surfaces of Export.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
The axis 0 (x) given as an integer fell back to z.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
… literature

The theory notes §140 to §147, the rows of the specification after 1.2.0, the
docstring of the hybrid model and the curved octahedra of the strut lattices reworded
after the literature alone; the variant of an error test renamed. No change of
behaviour.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
@jdirr
jdirr merged commit 7e178e6 into main Dec 2, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants