Repository navigation
Rhino, Grasshopper and Autodesk Fusion: 3DM files, Hops components, a Fusion add-in - #11
Merged
Merged
Conversation
…(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
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
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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'srhino3dmandghhops-server).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_3dmreads the meshes of a file back (the render meshes of polysurfaces too) in a unit of length, so that the modelpartfills a body drawn in Rhino (mesh: body.3dm).morphogen hops,morphogen.interop.grasshopper, FR-E23): the componentsmodel(any model from its configuration),tpms,lattice,infill,strandandprintability, their inputs and outputs Grasshopper's geometry.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) withresult.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.rhino(rhino3dm and ghhops-server come from PyPI, not from conda-forge; the conda-forge recipe constrains werkzeug), installed by the CI;morphogen infoshows 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 modelpartat 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 inresult.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