Skip to content

Rhino, Grasshopper and Autodesk Fusion: 3DM files, Hops components, a Fusion add-in - #11

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

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

Conversation

@jdirr

@jdirr jdirr commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Rhino, Grasshopper and Autodesk Fusion with morphoGen (interop.md, FR-E22 to FR-E24, specification 1.267 to 1.269), through the new extra morphogen[rhino] (McNeel's rhino3dm and ghhops-server).

  • Rhino files (morphogen.io.rhino, outputs.surface: {formats: [3dm]}, FR-E22): the bodies of the phases on a layer each, named and coloured; the axes of the members on a sub-layer, the radius of each in its user text (the struts of lattices and the axes of fibres as lines clipped to the box, the wires of strands and ropes as polylines, spheres as exact spheres); the model, domain and version in the document's user text. read_3dm reads the meshes of a file back (the render meshes of polysurfaces too) in a unit of length, so that the model part fills a body drawn in Rhino (mesh: body.3dm).
  • Grasshopper through Hops (morphogen hops, morphogen.interop.grasshopper, FR-E23): the components model (any model from its configuration), tpms, lattice, infill, strand and printability, their inputs and outputs Grasshopper's geometry.
  • Autodesk Fusion and Rhino 8 (morphogen cad install fusion|rhino, FR-E24): the add-in MorphoGen (its command morphoGen infill in the panel Create of the Solid tab) and a script of Rhino fill a body of the program with a TPMS, a strut lattice or a spinodoid inside a shell and bring the part back (a mesh body, or a STEP solid in Fusion). They run morphoGen in its own Python through a bridge (morphogen cad run REQUEST.json, morphogen.interop.cad): the body put back in the unit of the request (by its box, or by the unit of a 3DM document), filled, the part written (STL, 3MF, STEP, 3DM) with result.json (its volume fraction, and the printability of the part resting on its build plate). The program stays responsive while morphoGen runs, and Escape or Cancel stops it.
  • Installation and documentation: the extra rhino (rhino3dm and ghhops-server come from PyPI, not from conda-forge; the conda-forge recipe constrains werkzeug), installed by the CI; morphogen info shows the versions of rhino3dm and ghhops-server; the public interface written again (tests/public_api.txt) and recorded in the change log; interop.md, installation.md, configuration.md, architecture.md and the README.

Verification (tests/test_cad_interop.py). The 3DM file of an octet lattice holds a closed body at the lattice's volume fraction, its struts clipped to the box with their radii and the model in its user text; read in centimetres, its vertices are a tenth of its millimetres; spheres come back as exact spheres at their centres, the wires of a strand as polylines of their layers' phases, and a run writes them; a body drawn in Rhino is filled by the model part at its fraction. The bridge fills a body written in centimetres and put back in millimetres by its box (its volume to 10⁻⁹, the fraction that of the shell and the gyroid), keeps a body of a 3DM document in centimetres in its unit, refuses STEP files in inches at once and writes its errors in result.json. The add-in of Fusion and the script of Rhino install with their bridge and compile; the bridge runs morphoGen in a process of its own, reports its progress and stops at once when cancelled. The six components answer as Grasshopper calls them through Hops; over HTTP, the server lists them, gives the metadata of one and solves it. The add-in and the script have not been run inside Fusion or Rhino, which the CI does not have.

The CI of the branch (run 46882804904, by workflow_dispatch on e22c063) is green on Ubuntu (Python 3.12, and 3.14 with the slow tests), Windows and macOS, with the documentation built without warnings. The branch took main (#10) by a merge commit that keeps its own tree, since main held nothing the branch did not already have.


Generated by Claude Code

…(Durville)

Models strand and wire_rope: layers of helical wires about a core, cross-lay or
equal lay (Seale, filler), closed side by side or at given radii and lay angles;
ropes of strands laid about a core strand, each wire along a nested helix in the
Frenet frame of its strand; periodic along the axis; exact distances to the
wires within the sag of their polylines.

morphogen.beams: beams of deformable sections (Durville's first-order
kinematics: the centre and two directors of each section), quadratic elements,
Newton's method with linear conditions by Lagrange's multipliers; contact and
Coulomb's friction between beams by intermediate geometries, the particles
toward the centre of the other section, the crossings moved to the exact points
of least distance, a regularized penalty and the history of the slips.

morphogen.homogenization.strands: the cell of a strand under the macroscopic
strains of a beam (Saadat & Durville 2023) by screw motions, its resultants
(with the work of the contacts across its faces) and its tangent stiffness at a
state; the thin-rod theory (Costello) and Papailiou's bounds; the strand of
Utting & Jones and two crossing layers within 1 % of the thin rods; bent under
tension with friction, the wires stick, slide and leave a hysteresis.

Runs: the section strand_mechanics (the columns strand.*, a report, the curve of
the bending); interface: the tab Cables and its tool Strand mechanics; the
templates strand and wire_rope with their gallery cards; theory sections 148 to
151, specification 1.263 to 1.266, change log.

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

Rhino files (morphogen.io.rhino, outputs.surface formats 3dm): the bodies of the
phases on a layer each, named and coloured; the axes of the members on a sub-layer
(struts and fibre axes as lines clipped to the box, the wires of strands and ropes as
polylines, spheres as exact spheres), the radius of each in its user text; the model,
domain and version in the document's user text; read_3dm reads the meshes of a file
back (render meshes of polysurfaces too) in a unit of length, so that the model part
fills a body drawn in Rhino.

Grasshopper through Hops (morphogen hops, morphogen.interop.grasshopper): the
components model, tpms, lattice, infill, strand and printability.

Autodesk Fusion and Rhino 8 (morphogen cad install fusion|rhino): the add-in
MorphoGen (command morphoGen infill, Solid tab, Create panel) and a Rhino script fill
a body of the program with a TPMS, a strut lattice or a spinodoid inside a shell and
bring the part back (a mesh body, or a STEP solid in Fusion). They run morphoGen in its
own Python through a bridge: morphogen cad run REQUEST.json (morphogen.interop.cad)
puts the body back in the unit of the request (by its box, or by the unit of a 3DM
document), fills it, writes the part (STL, 3MF, STEP, 3DM) and result.json with the
volume fraction and the printability of the part resting on its build plate.

The extra rhino (rhino3dm, ghhops-server, werkzeug; the first two are not on
conda-forge, the recipe constrains werkzeug); CI installs it. Docs: interop.md,
installation.md, configuration.md, architecture.md, README; specification 1.267 to
1.269 (FR-E22 to FR-E24); tests/test_cad_interop.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
main holds the tree of a932fdd (the strands squashed), already in this branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
@jdirr
jdirr merged commit d493d01 into main Dec 2, 2026
12 checks passed
jdirr pushed a commit that referenced this pull request Dec 2, 2026
main holds the tree of e22c063 (the interoperability squashed), already in this branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSrXEMpgnWPQNUwHwAgXHV
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