Skip to content
strittiPublic

About

SolidCraft importer plugin that opens STL meshes as editable, parametric designs.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

6 stars

Watchers

0 watching

Forks

Latest commit

 

History

189 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

revmesh

CI codecov License: MIT Docs Listed on solidcraft-plugins

A NEMA 17 motor plate: STL mesh in, parametric sketch, extrude and holes out

Open STL, OBJ and PLY files in SolidCraft as editable designs.

revmesh is a SolidCraft importer plugin. Instead of a dead triangle mesh, it recognises what the part was made of (plates, holes, slots, fillets, …) and writes a parametric feature history: a sketch, an extrusion, holes and fillets, driven by named parameters such as base_x or hole_1_d. Change a parameter and SolidCraft rebuilds the part.

The recognition is informed by the published references listed under Research and literature — mesh2cad (MIT) is one of them, and revmesh writes its parameter names. It is written in Rust, so it runs inside SolidCraft's WebAssembly sandbox without Python, numpy or OpenCascade.

Status: early. The plugin pipeline works end to end: mesh in, design out, tested in SolidCraft 0.54. Recognition finds plates: any outline of straight sides or circular arc sides, round outlines and elliptical outlines (rectangles, L-shapes, brackets, chamfered or slanted sides, bulges, stadium ends, circles, ellipses) extruded along Z — or along X or Y, a part standing upright —, its corners parallel to that axis sharp or all rounded, each with its own radius, with round through holes; and boxes with all twelve edges rounded with one radius. Everything else is imported as a mesh body, with the reason in the import report. See the roadmap.

Install

revmesh comes as two packages that belong together: revmesh, the importer that opens a mesh file as an editable design, and revmesh-convert, the convert command that turns a mesh body already in the open design into a parametric history. SolidCraft allows only one kind of entry per plugin (all importers or all commands), so they cannot be one package; install both.

  1. Download revmesh-<version>.zip and revmesh-convert-<version>.zip (English), or revmesh-<version>-de.zip and revmesh-convert-<version>-de.zip (German), from the releases. The English and German zip of a package are the same plugin with the same id, so take one language per package: SolidCraft shows a plugin's texts as its package gives them.
  2. In SolidCraft, open Preferences › Plugins › Install plugin… (also File › Plugins…) and pick the first zip, then repeat for the second one.

From a script, review each package first and install it with the approval hash it prints — SolidCraft runs plugin code only for the exact package that was reviewed:

solidcraft-cli exec plugin.check '{"path": "revmesh-<version>.zip"}'          # prints "approval": "…"
solidcraft-cli exec plugin.check '{"path": "revmesh-convert-<version>.zip"}'  # its own approval
solidcraft-cli exec plugin.install '{"path": "revmesh-<version>.zip", "approval": "…", "approve": {}}'
solidcraft-cli exec plugin.install '{"path": "revmesh-convert-<version>.zip", "approval": "…", "approve": {}}'

examples/cli/ has a runnable end-to-end example (check → install → file.import → export); scripts/example-cli.sh runs it in one command. Or unpack the zip into the per-user plugins folder yourself: ~/.local/share/solidcraft/plugins/ (Linux; $XDG_DATA_HOME/solidcraft/plugins when set), %LOCALAPPDATA%\SolidCraft\plugins\ (Windows), ~/Library/Application Support/SolidCraft/plugins/ (macOS).

Compatibility

revmesh SolidCraft
0.2.x (current) 0.54.x — the plugin interface (crates/revmesh-plugin/wit/plugin.wit) is vendored unchanged from SolidCraft v0.54.1, and CI runs the plugin tests against solidcraft-cli 0.54.1

SolidCraft's plugin runtime is experimental, so a different SolidCraft version may refuse the package or need a different revmesh — keep both up to date. The SolidCraft version workflow fails PRs that target an older SolidCraft than the latest release, so current revmesh always targets the newest one.

Quality checks

The community plugin index (solidcraft-plugins) awards its "✓ Quality checked" badge from a checklist that revmesh runs on every pull request and release in CI: formatting and clippy (native and wasm32), unit and golden tests, the ≥ 80 % line-coverage gate, the recognition rate measured on the Printables/Prusa corpora (posted as a PR comment), the MSRV check, cargo-deny and cargo-audit, the wasm component size check, the end-to-end plugin tests in SolidCraft (cargo xtask plugin-test and cargo xtask check against solidcraft-cli SOLIDCRAFT_VERSION) and the headless CLI example — all rolled up into the required ci-ok check. Every release ships one zip per package (English and German) under MIT with issues open, and the bug report template asks for the mesh file and the import report.

Use

  1. On the Insert ribbon tab, the plugin has its own revmesh group with the stl button (the same entry is in the Plugins menu: Model tab › Plugins group label › revmesh › stl). SolidCraft's own File › Open keeps using its built-in mesh import for .stl, so revmesh is reached through the Insert tab or the Plugins menu.
  2. The dialog only asks for Units: mm (the default — mesh files are unitless and read as millimetres) or inch, which is converted to millimetres (× 25.4) and noted in the report. What the import makes of the file it decides itself: features are recognised and the part is rebuilt parametrically where possible; where nothing is recognised — or the file is too large for recognition — the mesh is kept as it is, and the report says why.
  3. Its button chooses the mesh file (.stl, .obj or .ply). It opens as a new, unsaved design.
  4. The Import report follows: a summary, one line per kind of change, and everything in detail under Details. Plugins › Last import report… shows it again later.

Input sizes and runtime limits are listed under Limits.

A recognised part arrives as a timeline (sketch, extrusion, holes, fillet) with its sizes as parameters in the parameter panel: change base_t or hole_1_d and SolidCraft rebuilds it. A part that is not recognised arrives as a mesh body, and the report says why. To try it, import one of the example parts in examples/ (a motor plate, a flange, a corner plate, …); the docs' examples gallery shows each with the features and parameters it gets.

A mesh body that is already in the open design — opened through SolidCraft's own File › Open, or a revmesh import that was not recognised — converts in place with the revmesh-convert package's convert command (Model ribbon tab; select the body), or from its Mesh bodies panel, which lists the design's mesh bodies with a Convert button: the body is recognised exactly like a file import and replaced by its parametric history in one undo step, with the volume checked against the mesh within 1 %. If nothing is recognised, the body stays a mesh and the report says why (roadmap 7.7, issue #70).

What the import recognises

In the STL In SolidCraft Parameters
A rectangular plate, thickness along Z Sketch1 (rectangle on XY), Extrude1 and Move1 (to where the plate is) base_x, base_y, base_t; the centre base_cx, base_cy and the bottom base_z0
A plate with any other outline of straight sides Sketch1 (the outline on XY, sides along X or Y kept horizontal or vertical, every side a Length dimension, the longest slanted side an Angle from the X axis), Extrude1 and Move1 extrude_len (thickness), extrude_0 (bottom), the bounding box's base base_x, base_y and centre base_cx, base_cy across the profile plane, outline_<i>_len per side, outline_<i>_angle on the longest slanted side
An outline with circular arc sides (a bulge, a stadium's round end) Sketch1 (the outline on XY, each arc side an arc curve with a Diameter dimension, each straight side a Length dimension), Extrude1 and Move1 extrude_len, extrude_0, outline_<i>_len per straight side, arc_<i>_d per arc side (its centre a free sketch point)
A round outline (a circle all the way round) Sketch1 (the circle on XY as two arc curves about one shared centre point, one Diameter dimension on the first), Extrude1 and Move1 extrude_len, extrude_0, arc_1_d
An elliptical outline (one ellipse all the way round) Sketch1 (the ellipse on XY as one ellipse curve about its free centre point through the major-axis end, a construction centreline with a Length dimension, a Radius dimension on the curve, an Angle from the X axis), Extrude1 and Move1 extrude_len, extrude_0, ellipse_a, ellipse_b (the semi-axes), ellipse_angle (the major axis from +X)
Any of those outlines extruded along X or Y (a part standing upright) Sketch1 on the YZ or XZ plane (the profile's coordinates are the sketch coordinates there), Extrude1 along that axis, Move1 extrude_len, extrude_0 (along the axis); the bounding box's base base_<l>, base_c<l> across the profile plane; the holes' and slots' positions named after the profile plane's world axes, e.g. hole_1_y, hole_1_z on an X extrusion, anchored on that base
Round vertical through holes (8 or more facets going evenly round the circle) Hole1, Hole2, … numbered from left to right hole_<n>_x, hole_<n>_y (anchored on the part's base — its centre or nearer edge), hole_<n>_d
A counterbored through hole, its counterbore on the top or the bottom face Hole<n> of type counterbore (drilled from that face) hole_<n>_d, hole_<n>_cbore_d, hole_<n>_cbore_depth (from that face)
A countersunk through hole, on the top or the bottom face Hole<n> of type countersink hole_<n>_d, hole_<n>_csk_d (at the face), hole_<n>_csk_angle (the cone's full angle)
A through hole whose rim is rounded, on the top or the bottom face Hole<n> and Hole<n>Rim (a fillet of the edge between the face and the bore) hole_<n>_d, hole_<n>_rim_r (top) or hole_<n>_bot_rim_r (bottom)
A round blind hole with a flat floor, drilled from the top or the bottom face Hole<n> with a depth (drilled from that face) hole_<n>_d, hole_<n>_depth (from that face)
A straight slot through the plate (two round ends of one width), along X, Y or at any angle Slot<n>Sketch (the slot on XY) and Slot<n> (a cut through everything) slot_<n>_len (between the end centres), _w, the middle _x, _y, and _angle (of the long axis, from +X)
A straight round boss on a side wall (the X or Y wall of a rectangular plate), protruding along the wall's normal Boss<n> (a cylinder joined to the plate, its base on the wall's base_* expression, its axis the wall's outward normal), numbered after the top bosses boss_<n>_d, boss_<n>_h (out from the wall), the axis across the wall boss_<n>_y/_z (on an X wall) or boss_<n>_x/_z (on a Y wall)
A round boss standing on the top face, straight, drafted (narrowing upwards) or with its top edge chamfered Boss<n> (a cylinder joined to the plate, on its top face) boss_<n>_d, boss_<n>_h (above the top face), boss_<n>_fillet (a round at its foot, if it has one; Boss<n>Fillet), boss_<n>_draft_deg (a drafted boss is a cone), boss_<n>_chamfer (45°) or boss_<n>_chamfer_h and _w (Boss<n>Chamfer), the centre boss_<n>_x, boss_<n>_y
A round boss standing on the bottom face, protruding down (mesh2cad's boss_N_side = -1), straight, drafted, chamfered or with a round at its foot Boss<n> (a cylinder or cone joined to the plate, on its bottom face, pointing down), numbered after the top bosses as a top boss: boss_<n>_d, boss_<n>_h (below the bottom face), boss_<n>_fillet, boss_<n>_draft_deg, boss_<n>_chamfer, the centre boss_<n>_x, boss_<n>_y
A plain hole right through the part that comes out of a boss's free end (mesh2cad's through_boss) Hole<n> drilled from a top boss's top (or the top face, for a bottom boss) through boss and plate, after the bosses; numbered after the other holes and never part of a pattern hole_<n>_d; the centre hole_<n>_x, hole_<n>_y — boss_<k>_x, boss_<k>_y when the hole lies on the boss's axis, so it follows the boss
A cut-out of straight sides through the plate (3 to 24 corners, each a real turn) CutoutsSketch (every cut-out, on XY, every side a Length dimension) and Cutouts (a cut through everything, after the outline's fillet) cutout_<n>_<i>_len per side (mesh2cad writes the corners as the point list cutout_<n>)
A cut-out with circular arc sides, or D-shaped (two corners and its arc), through the plate Cutout<n>Sketch and Cutout<n> per cut-out (each arc side an arc curve with a Diameter dimension), a cut through everything cutout_<n>_<i>_len per driving straight side, cutout_<n>_arc_<i>_d per arc side (its centre a free sketch point)
A cut-out that is one full ellipse, through the plate Cutout<n>Sketch and Cutout<n> (one ellipse curve as for an elliptical outline), a cut through everything cutout_<n>_ellipse_a, cutout_<n>_ellipse_b, cutout_<n>_ellipse_angle
A cut-out of straight sides whose every corner is rounded, through the plate Cutout<n>Sketch (the sharp polygon) and Cutout<n> (a cut through everything), then Cutout<n>Fillet<g> of its vertical edges cutout_<n>_<i>_len per driving side, cutout_<n>_fillet_r (or cutout_<n>_fillet_r_<g> per radius group)
A rectangular block (pad) along X and Y standing on the top face Pad<n> (a box joined to the plate) pad_<n>_w (along X), pad_<n>_l (along Y), pad_<n>_h, the middle pad_<n>_x, pad_<n>_y
A rectangular blind pocket along X and Y with a flat floor, in the top or the bottom face Pocket<n> (a box cut out of the plate) pocket_<n>_w, pocket_<n>_l, pocket_<n>_depth (from that face), the middle pocket_<n>_x, pocket_<n>_y
A blind pocket of any other outline of straight sides with a flat floor, in the top or the bottom face Pocket<n>Sketch (the mouth's outline on XY, every side a Length dimension) and Pocket<n> (a cut from that face), numbered after the rectangular pockets pocket_<n>_depth, pocket_<n>_<i>_len per side
A step down from the top face along Z (a lower level whose region shares an edge with the outline) written like a pocket of that region's outline: Pocket<n>Sketch and Pocket<n> cut from the top down to the level pocket_<n>_depth (the step's height), pocket_<n>_<i>_len per side
Three or more holes of one diameter on a straight line at one pitch, along X or Y HoleRow<n> and HoleRow<n>Pattern (a rectangular pattern along the row) hole_row_<n>_n, _pitch, _d, and the first hole _x, _y
The same row at any other angle (a pattern's direction is not an expression in SolidCraft) one Hole<n> per hole hole_<n>_x, hole_<n>_y, hole_<n>_d
Holes of one diameter in an axis-aligned grid of at least 2 x 2 HoleGrid<n> and HoleGrid<n>Pattern hole_grid_<n>_nx, _ny, _pitch_x, _pitch_y, _d, and the corner hole _x, _y
Three or more holes of one diameter equally spaced on a circle (a bolt circle) HoleCircle<n> and HoleCircle<n>Pattern (a circular pattern about the circle's centre) hole_circle_<n>_n, _d, _r (centre to hole), _cx, _cy, _angle (first hole, from +X)
The four vertical corners of a rectangular plate rounded, each with its own radius one Fillet<g> per radius group fillet_r (all corners one radius) or fillet_r_<g> per group
Every vertical corner of any other outline rounded, each with its own radius, inside and outside corners alike one Fillet<g> per radius group (before the holes, so a hole may lie in an inside corner's rounding) outline_fillet_r (all corners one radius) or outline_fillet_r_<g> per group
A rectangular box with all twelve edges rounded with one radius, with through holes Fillet1 on all twelve edges of the extrude (the four `side side, the four side
The intersection of outlines of straight and circular arc sides (a stadium's round end, a bulge) extruded right across the part along two or three of X, Y and Z (a plate seen from above cut by a ramp seen from the side; every face flat and parallel to at least one axis) Sketch<k> (each outline on its axis's plane) and Extrude<k> (the first a new body, each further one intersect), Move1 extrude_<a>_len (the length along axis a), extrude_<a>_0 (where it starts along it) for each outline's axis; the outlines' corners as in the file (mesh2cad's point lists outline_<a>); each arc side of an outline without openings an arc curve with a Diameter dimension, outline_<a>_arc_<i>_d (its centre a free sketch point; a rounded corner of such an outline is an arc side between its tangent points); openings of straight sides right through an outline (a window through the part along that axis) are drawn in its sketch and are the extruded profile's holes (mesh2cad's outline_<a>_cutout_<i>); straight blind cuts and pockets of straight sides along X, Y or Z are Cut<n>Sketch and Cut<n> (a cut extrusion from its start; islands it leaves standing, as a letter's counter in engraved text, are drawn in its sketch as the profile's holes, cut_<n>_island_<k>_<i>_len, and a pocket's floor may have a hole going on down from it, as a nut trap's), cut_<n>_len, cut_<n>_0 (anchored on the part's base — the face's expression where it opens on a face), the longest of the axes a rectangular pocket fits; along an axis without an outline the box's base_<a>, base_c<a>; round holes along X, Y or Z, through it or blind from a face — also two that cross inside the part, and one broken by pockets and slots along it — are Hole<n> (a cylinder cut out of it), hole_<n>_d, the hole's two coordinates across its axis (hole_<n>_x, hole_<n>_y along Z, anchored on the base), hole_<n>_depth for a blind one, hole_<n>_chamfer for a 45° chamfer on its mouth where it opens on the box's face (a Hole<n>Chamfer cone cut, as on the bed side of Prusa's printed parts), hole_<n>_chamfer_in for a 45° taper under a blind hole's floor (mesh2cad's chamfer_in, a Hole<n>Taper cone cut)
Outlines stacked along X, Y or Z, each extruded over its own span (a base, a smaller block on part of it, another on that), when no intersection of outlines fits: every face square to the axis or along it, or — on the top band's top edges — one chamfer (a bevel, or a roof when the chamfers meet) per band Sketch<k> (its section on the axis's plane) and Extrude<k> from where the band below ends (the first a new body, the others joined), Move1, and the top band's chamfer as Chamfer1 on its top edges (on an X or Y stack, a second Chamfer2 with swapped distance/distance2 for the edges whose side face points up) extrude_<a><k>_len and extrude_<a><k>_0 (mesh2cad's names; a band's start is extrude_<a><k-1>_0 + extrude_<a><k-1>_len, so a band's new height moves the bands above); the bounding box's base base_<l>, base_c<l> across the stacking axis, which the move follows; of the axes it stacks along, the one with the fewest bands; the top chamfer chamfer (45°) or chamfer_w and chamfer_h

The parameter names are mesh2cad's, and the part stays where it is in the file. Like mesh2cad, which tries a prism along X, Y and Z, revmesh recognises an outline extruded along any of them: Z first (a box is a prism along all three, and along Z it keeps mesh2cad's base_* names), then X, then Y; an outline along X or Y is written as extrude_len, extrude_0 and the outline's corners, the way mesh2cad's extrusion module writes it. Its profile lies in the plane perpendicular to the axis (X: y and z, Y: x and z, Z: x and y), and SolidCraft's YZ and XZ planes sketch it directly (XZ's sketch y is -Z, so on a Y extrusion a slot's angle runs from +X towards -Z). STL files exported by SolidCraft itself, or by other tools that mesh walls in bands, are recognised too. Change hole_row_1_n or hole_circle_1_r and every hole of that pattern follows. A grid wins over a bolt circle (four corner holes are both). A complete grid can also be found alongside one same-diameter hole that shares neither a row nor a column with it. Two holes are never a pattern, and a pattern with one hole missing or out of place stays single holes. A row along X or Y is a pattern whose direction is fixed (mesh2cad's hole_row_N_angle is not a parameter, as a SolidCraft pattern direction is not an expression); a row at any other angle is written as single holes. A chamfered corner is simply one more straight side, so it comes over exactly. The rebuilt part must match the mesh's volume within 1%, otherwise the mesh is kept. The import report notes how much the volume changed because round facets became true circles. Not recognised yet (kept as a mesh, with the reason): a whole closed curve that is no circle or ellipse in one run, curved sides too rough for one spline within the tolerance, rounded corners mixed with arc sides, blind or slanted slots, corners rounded almost all the way along their sides, steps along X or Y, pockets with curved sides, holes that meet a boss without coming out of its free end, pads on the bottom face, other shapes on the top face, shaped bosses or pads on a side wall, a counterbore, countersink or rounded rim opening on a step's level, blind holes with a drill point or a counterbore, and parts rotated off X, Y and Z. Blind holes, like counterbored and countersunk ones, stay single holes, not patterns.

Limits

Limit Value Set in
Mesh file size 64 MiB MAX_BYTES in crates/revmesh-plugin/src/lib.rs
Recognition, at most ≈ 335k triangles (≈ 16 MiB of binary STL; up to 500k are first simplified losslessly) MAX_RECOGNITION_TRIANGLES / MAX_SIMPLIFY_TRIANGLES in crates/revmesh-core/src/import.rs
Memory 128 MiB runtime.limits.memory_mib in plugin/revmesh/plugin.json
Import deadline 120 s runtime.limits.deadline_ms in plugin/revmesh/plugin.json
Fuel 10¹¹ runtime.limits.fuel in plugin/revmesh/plugin.json

The file is streamed through the sandbox in 1 MiB chunks, so these limits are about peak memory, not file size: recognition builds face and wall indexes on top of the mesh, so it runs only up to ≈ 335k triangles (about 16 MiB of binary STL, ≈ 90 MiB peak; OBJ/PLY hold shared vertices and expand less) inside the 128 MiB budget — a larger file is kept as a mesh. The rebuilt part must match the mesh's volume within 1 %, otherwise the mesh is kept. Measured numbers and the reasoning behind them: docs/architecture.md.

How it works

 mesh file ──▶ format::parse ──▶ Mesh ──▶ recognize ──▶ PlateSpec … ──▶ Design (JSON) ──▶ SolidCraft
                                            │                               ▲
                                            └── nothing found ──► mesh body ┘   + loss report
Crate What it does
revmesh-core STL/OBJ/PLY parsing, recognition and the SolidCraft document model. Pure Rust, no host calls, tested natively with cargo test.
revmesh-plugin The WebAssembly component (craft:plugin@0.2.0, importer-plugin world). Reads the file from SolidCraft, calls the core, writes the design back.
xtask Builds the component and the installable zip, and runs SolidCraft's plugin tests.
plugin/revmesh The plugin package: plugin.json and the test cases SolidCraft runs.

The documentation is published at https://stritti.github.io/revmesh/. More in docs/architecture.md, for the document format the importer writes in docs/design-format.md, and for comparing a recogniser with the reference tools in docs/development.md.

Build from source

You need Rust (the toolchain in rust-toolchain.toml is picked up automatically, with the wasm32-unknown-unknown target) and, for the end-to-end tests, solidcraft-cli, which ships with SolidCraft.

cargo test                     # unit tests of the core, natively
cargo xtask component          # builds plugin/revmesh/revmesh.wasm
cargo xtask dist               # target/dist/revmesh-<version>.zip (en) and revmesh-<version>-de.zip
cargo xtask plugin-test        # runs plugin/revmesh/tests in SolidCraft (set SOLIDCRAFT_CLI)
cargo xtask check              # checks every rebuild against its source mesh (volume + deviation)
cargo xtask skills --sync      # copies .agents/skills to the other agent skills folders

Roadmap

  1. Skeleton (done): plugin pipeline, document writer, mesh fallback, quality gates, releases.
  2. Plates (done): any outline of straight sides with round through holes and rounded vertical corners.
  3. Recognisers checked against the reference tools, one per pull request, each compared with mesh2cad's output as one of the references (scripts/compare-mesh2cad.sh):
    1. (done) parameter names as mesh2cad writes them (base_t, fillet_r, extrude_len, …), and the part kept where it is in the file;
    2. (done) hole rows, grids and bolt circles as SolidCraft patterns;
    3. (done) counterbored and countersunk holes; 4. (done) blind holes; 5. (done) slots; 6. (done) bosses on the top face;
    4. (done) polygonal cut-outs; 8. (done) pads and pockets; 9. (done) extrusions along X and Y;
    5. (done) boxes with every edge rounded (edge_fillet_r), with through holes in them, and bosses on side faces (done in v0.3.0); 11. (done) chamfers, drafts and the rounds at a boss's foot or a hole's rim; 12. combined extrusions: (done) the intersection of outlines along X, Y and Z, with openings through them, straight blind cuts into them and round holes, and (done) unions of outlines stacked along an axis; holes that cross, roofs and bevels on a stack (done in v0.3.0).
  4. Checking (done): cargo xtask check compares the rebuilt part with the mesh through SolidCraft's eval (feature errors, volume) and an STL re-export (surface deviation, Hausdorff), with mesh2cad's gate, as mesh2cad checks its scripts with CadQuery.

The current product track is item 8, usable in practice: design intent in the parameters (a centred hole stays centred when the part is resized), partial recognition instead of all-or-nothing, and the recognition rate measured on real files.

Item 10 now puts baseline fidelity, safe replacement, versioned reports, neutral model plans and host capability tests ahead of broad recogniser expansion. Item 8 remains corpus-driven; native features require proven host support. See the implementation backlog.

Beyond that, item 9 charts the extension to a noise-robust, versatile reverse-engineering system: noise-adaptive preprocessing with automatic axis alignment, a wider analytical vocabulary (spheres, cones, revolves) with analytical intersection construction, SolidCraft-native features under the WASM budget, staged fallbacks with a fidelity report and noise benchmarks, and an optional external AI loop over SolidCraft's MCP server (reasoning and references: research/reverse-engineering-strategy.md).

The full roadmap — with the release each done item shipped in and the open points in priority order — lives in docs/guide/roadmap.md (German: docs/de/guide/roadmap.md).

Agent skills

The Agent Skills for professional WebAssembly-in-Rust development of SolidCraft plugins are mirrored into the four well-known locations that skills-compatible agents scan: .agents/skills/, .github/skills/, .claude/skills/ and .vibe/skills/ (identical copies — edit .agents/skills/ and run cargo xtask skills --sync; cargo test fails while a copy differs). AGENTS.md is the short orientation for agents working on this repo.

Skill Use it when
solidcraft-plugin-scaffold creating a plugin crate, manifest or xtask wiring
solidcraft-wit-worlds choosing a craft:plugin world, capability or plugin-error variant
solidcraft-wasm-build building, wrapping, packaging or shrinking the component
solidcraft-wasm-limits working within memory/fuel/deadline limits and streaming large files
solidcraft-host-calls calling host interfaces and mapping errors
solidcraft-importer-workflow implementing an importer slot end to end
solidcraft-plugin-testing adding unit, golden, eval or plugin-test coverage
revmesh-recognition-knowhow adding or changing a recogniser or sketch writer — the portable building blocks from the literature (RANSAC, loop fits, dihedral segmentation, extrusion cylinders, sketch constraints, validity gates), mapped to this repo's code
roadmap-maintenance keeping the roadmap current — release tags on done items, prioritised open points, EN/DE in sync — on every roadmap-touching change and every release
solidcraft-plugin-landscape re-auditing the SolidCraft plugin ecosystem (tharje.github.io/solidcraft-plugins and the plugins' GitHub repos) for learnings for revmesh — on a cadence and on triggers, snapshots under research/plugin-landscape/

Every SolidCraft skill opens with the same mandatory conformance check: before touching the plugin boundary, verify compatibility and full utilization against SolidCraft's docs/plugins.md at the pinned tag v0.54.1 and main.

Contributing

Contributions are very welcome: bug reports, STL files that import badly, recognisers, docs. Start with CONTRIBUTING.md. Everyone taking part follows the Code of Conduct.

License

revmesh is licensed under the MIT License. Unless you state otherwise, any contribution you submit for inclusion is licensed the same way, without any additional terms or conditions.

Code ported from mesh2cad keeps its original MIT copyright notice; see NOTICE and LICENSES/mesh2cad-MIT.txt. SolidCraft's plugin interface (crates/revmesh-plugin/wit/plugin.wit) is © the SolidCraft authors, Apache-2.0. revmesh is an independent project and not affiliated with SolidCraft or mesh2cad.

About

SolidCraft importer plugin that opens STL meshes as editable, parametric designs.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages