Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
f03a917
Parametric: elastic properties for materials (modulus, Poisson's rati…
jelveh Nov 27, 2026
5c54307
Parametric: limit and mechanical mates and motion studies in the mate…
jelveh Nov 27, 2026
e5a636f
Parametric: limit and mechanical mates in the Mate panel, and motion …
jelveh Nov 27, 2026
fd1963f
Parametric: interference check over a motion study's frames
jelveh Nov 27, 2026
f3d6081
Parametric: README for limit and mechanical mates and motion studies
jelveh Nov 27, 2026
0895afa
Parametric: motion study styles beside the CAM playback rules; access…
jelveh Nov 27, 2026
f80a3a4
Parametric: motion studies solve only what the motors move; motor sum…
jelveh Nov 27, 2026
3fa50ce
Parametric: static study model (fixtures, loads, mesh setting) saved …
jelveh Nov 27, 2026
255baf9
Parametric: tetrahedral mesher for stress analysis (lattice stuffing,…
jelveh Nov 27, 2026
e810d7c
Parametric: linear static solver (10-node tetrahedra, multigrid preco…
jelveh Nov 27, 2026
80c65a5
Parametric: Analysis tab: static study setup, fixtures, loads, mesh, …
jelveh Nov 27, 2026
050b993
Parametric: fixed hinge studies: loads that do no work on a free turn…
jelveh Nov 27, 2026
57e0955
Parametric: tests for the study file format, materials, results expor…
jelveh Nov 27, 2026
e748254
Parametric: README: the Analysis tab, its limits and its modules
jelveh Nov 27, 2026
9b202a5
Parametric: analysis spec type checks its dynamic import
jelveh Nov 27, 2026
2f0632e
Parametric: dialogs spec expects a preset material's elastic properties
jelveh Nov 27, 2026
d2ab5c9
Parametric: slider, cam follower and universal joint mates; motors on…
jelveh Nov 27, 2026
76626de
Parametric: analysis code and test cleanup
jelveh Nov 27, 2026
d1813cb
Parametric: cam profiles read from part faces in compose.ts, with a t…
jelveh Nov 27, 2026
1be016d
Parametric: README for slider, cam follower and universal joint mates
jelveh Nov 27, 2026
5e3b19a
Parametric: Mesh Now button, calibrated unknowns estimate
jelveh Nov 27, 2026
9b79e6f
Parametric: cam outlines divide arcs at every degree (contact on the …
jelveh Nov 27, 2026
a13ef40
Merge kinematic mates and motion studies
jelveh Nov 27, 2026
a856929
Merge linear static stress analysis
jelveh Nov 27, 2026
e4c7a91
Parametric: fast motors in motion studies run instead of locking up (…
jelveh Nov 27, 2026
d5ead03
Parametric: hinge angle limits past ±180° hold at their ends (a door …
jelveh Nov 27, 2026
b75d6ae
Parametric: motion results' velocity and acceleration are accurate at…
jelveh Nov 27, 2026
dc8b826
Parametric: long motion studies of large assemblies keep only the mov…
jelveh Nov 27, 2026
516aea9
Parametric: a universal joint between shafts at 90° says it cannot tu…
jelveh Nov 27, 2026
4598862
Parametric: a cam profile missing some of the cam's side faces is ref…
jelveh Nov 27, 2026
77f6385
Parametric: a rack, gear or screw dragged far in one pointer move fol…
jelveh Nov 27, 2026
565600a
Parametric: gears, racks and screws turn any amount in one solve (a n…
jelveh Nov 27, 2026
8a5ef7f
Parametric: motion velocities stay accurate where a study took smalle…
jelveh Nov 27, 2026
e3e464b
Parametric: interference over a motion study checks frames spread eve…
jelveh Nov 27, 2026
e9181e7
Parametric: interference over a motion study skips pairs that did not…
jelveh Nov 27, 2026
2b1d057
Parametric: assembly drag is back to its old cost for assemblies with…
jelveh Nov 27, 2026
ab17fbd
Parametric: a gear, rack or screw mate that contradicts the mates bef…
jelveh Nov 27, 2026
68c6590
Parametric: a rack along its pinion's axis is refused with a message …
jelveh Nov 27, 2026
3e14632
Parametric: a load's "Along a picked edge or face" direction stays ch…
jelveh Nov 27, 2026
7ebbcb7
Parametric: the panel of a fixture or load closes when it is deleted …
jelveh Nov 27, 2026
f2a1387
Parametric: the Results and Study panels show a run's progress and Ca…
jelveh Nov 27, 2026
5699622
Parametric: cancelling an analysis while the part is being prepared s…
jelveh Nov 27, 2026
c77f30b
Parametric: results of a study or material edited during the run show…
jelveh Nov 27, 2026
11c0436
Parametric: analysis results stay up to date when the part is back to…
jelveh Nov 27, 2026
24a2ee1
Parametric: Mesh Now can be cancelled from the study panel, and a can…
jelveh Nov 27, 2026
13f3468
Parametric: a new pressure on an inch part starts at 100 psi (it show…
jelveh Nov 27, 2026
0f93868
Parametric: the printable analysis report says what its plot shows (q…
jelveh Nov 27, 2026
6409bef
Parametric: the material dialog marks and focuses the elastic propert…
jelveh Nov 27, 2026
badaac2
Parametric: a study with a zero or negative load is refused (in the f…
jelveh Nov 27, 2026
e2371e6
Parametric: fixture and load symbols move with the part when it is re…
jelveh Nov 27, 2026
becf166
Parametric: a part with a study opened while the Analysis tab is show…
jelveh Nov 27, 2026
dd19662
Parametric: on phones the result legend shows below the view toolbar …
jelveh Nov 27, 2026
f87ff4e
Parametric: Tab from the study name moves the focus on to the next co…
jelveh Nov 27, 2026
52d97fd
Parametric: the result legend's ticks share their decimals, so they l…
jelveh Nov 27, 2026
77ffe8a
Parametric: Analysis ribbon labels break only between words on phones…
jelveh Nov 27, 2026
4f25016
Parametric: the analysis CSV has one quantity per row with its unit i…
jelveh Nov 27, 2026
4ab3201
Parametric: Run right after a part edit waits for the rebuild, so loa…
jelveh Nov 27, 2026
847f246
Parametric: a custom material with its yield strength above its tensi…
jelveh Nov 27, 2026
209cfcf
Parametric: a limit mate whose smallest and largest values are equal …
jelveh Nov 27, 2026
d99b973
Parametric: a motion study stopped by a limit kept at one value says …
jelveh Nov 27, 2026
f13aa7e
Parametric: a rack is checked against its pinion's axis where the mat…
jelveh Nov 27, 2026
0efdbfa
Parametric: a slider on edges set to the other alignment turns the co…
jelveh Nov 27, 2026
63bea9b
Parametric: bevel gears (square axes) keep which way they turn as the…
jelveh Nov 27, 2026
3d0529c
Parametric: random small assemblies with every kind of mate are check…
jelveh Nov 27, 2026
9dbe9db
Parametric: a new motion study starts without the out-of-date results…
jelveh Nov 27, 2026
590a23c
Parametric: long motion studies plot instead of leaving the panel stu…
jelveh Nov 27, 2026
14e4110
Parametric: Escape and Enter in a motion study's motor cancel or add …
jelveh Nov 27, 2026
37e69bd
Parametric: moving a component with the Motion Study panel open shows…
jelveh Nov 27, 2026
d79f163
Parametric: a motion study plots a slider's travel
jelveh Nov 27, 2026
e3c7cfc
Parametric: motion study plots read 0 for rounding noise and their va…
jelveh Nov 27, 2026
20e4aa0
Parametric: the motion study time slider reads out the time to screen…
jelveh Nov 27, 2026
31f1fb8
Parametric: an interference check over a motion has a Cancel button
jelveh Nov 27, 2026
eba57d8
Parametric: a motion study takes a picked vertex as a point of its ow…
jelveh Nov 27, 2026
fe3ce5a
Parametric: Calculate refuses a motion study duration or frame rate i…
jelveh Nov 27, 2026
03c0bfc
Parametric: Flip Mate Alignment on a hinge turns the component over i…
jelveh Nov 27, 2026
f6e52a7
Parametric: switching a rack and pinion between pitch diameter and tr…
jelveh Nov 27, 2026
38a4c85
Parametric: a motion study does not start playing under a motor being…
jelveh Nov 27, 2026
06c52e0
Parametric: a motion study whose motors are all suppressed says so in…
jelveh Nov 27, 2026
12084f1
Parametric: the Mate panel gives a hinge or slider its own default li…
jelveh Nov 27, 2026
c3eaf4f
Parametric: Flip Follower Face is offered only for a cam's flat follo…
jelveh Nov 27, 2026
d824608
Parametric: the analysis code loads again on the next try after it fa…
jelveh Nov 27, 2026
58ff34a
Parametric: clicking Results in the design tree opens the results pan…
jelveh Nov 27, 2026
4afafa3
Parametric: new fixtures and loads are named like features and CAM op…
jelveh Nov 27, 2026
74e1b7a
Parametric: the study panel gives an inch part's material stiffness a…
jelveh Nov 27, 2026
5c81267
Parametric: the printed analysis report keeps headings with their tab…
jelveh Nov 27, 2026
c4dcb54
Parametric: screen readers hear each analysis stage once (the panel's…
jelveh Nov 27, 2026
6a474cb
Parametric: legend values of 100,000 and more show as powers of ten, …
jelveh Nov 27, 2026
4044151
Parametric: emptying the study name shows its name again instead of a…
jelveh Nov 27, 2026
e033fc1
Parametric: stress analysis solver setup and multigrid cycles are abo…
jelveh Nov 27, 2026
c702681
Parametric: a study that will not converge stops in seconds, and name…
jelveh Nov 27, 2026
7f115a1
Parametric: a part whose walls are thinner than the elements gets a m…
jelveh Nov 27, 2026
209daab
Parametric: the part's surface is moved to the analysis worker, not c…
jelveh Nov 27, 2026
e5b5008
Parametric: tests for the 10-node element (rigid motions, patch test,…
jelveh Nov 27, 2026
166e2f7
Parametric: a roller on several faces holds the nodes on their shared…
jelveh Nov 27, 2026
999d9a2
Parametric: reactions at nodes shared by two fixtures go to each fixt…
jelveh Nov 27, 2026
ac9f8c0
Parametric: meshing for stress analysis is about twice as fast
jelveh Nov 27, 2026
5fa9a05
Parametric: a roller on a flat face is held along the face's normal, …
jelveh Nov 27, 2026
e813028
Parametric: a roller on a cylindrical face holds it radially, so a sh…
jelveh Nov 27, 2026
650902a
Parametric: test the result fields of a bar in tension against hand v…
jelveh Nov 27, 2026
d02c3a1
Parametric: the multigrid's coarse matrices are built faster (rows of…
jelveh Nov 27, 2026
5debb53
Parametric: the mesher stops recovering edges when a pass no longer h…
jelveh Nov 27, 2026
ae1a114
Parametric: an analysis worker that cannot load says the analysis cou…
jelveh Nov 27, 2026
2343b9e
Parametric: fixtures holding the same face share its reaction instead…
jelveh Nov 27, 2026
67c3bf1
Parametric: a mate driver that would take a distance below zero or an…
jelveh Nov 27, 2026
313196b
Parametric: tests that interference over a motion lists a sunk-in par…
jelveh Nov 28, 2026
3028941
Parametric: a motion study's CSV is built in parts of 5000 rows inste…
jelveh Nov 28, 2026
1609aea
Parametric: a motion study plots the turn of a hinge without limits (…
jelveh Nov 28, 2026
ab6403f
Parametric: a new limited hinge counts 0° from where it puts the comp…
jelveh Nov 28, 2026
032f20b
Parametric: the arrow keys step a motion study's time slider one fram…
jelveh Nov 28, 2026
7903ad4
Parametric: thin-walled parts (plates, sheet metal) mesh at the defau…
jelveh Nov 28, 2026
93998a0
Parametric: the mesh panel offers sizes down to what a browser can so…
jelveh Nov 28, 2026
229d8d7
Parametric: test that Run Again and Run with results open show the ru…
jelveh Nov 28, 2026
a4a3bba
Parametric: a roller can be held along a face's true surface: planes,…
jelveh Nov 28, 2026
7cda9cb
Parametric: rollers in a study are held along their faces' true surfa…
jelveh Nov 28, 2026
a35c9f3
Parametric: interference over a motion reports pairs whose overlap co…
jelveh Nov 28, 2026
85a7509
Parametric: a new universal joint with a joint point takes its yokes …
jelveh Nov 28, 2026
c63e32b
Parametric: conical faces (a chamfer, a countersink) get their axis f…
jelveh Nov 28, 2026
f7b9680
Parametric: the analysis spec waits for the save to be written before…
jelveh Nov 28, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions src/parametric/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ It runs entirely in the browser. The geometry kernel is OpenCascade compiled to

**Assemblies**
- File > New Assembly. Insert Components places parts from your cloud, this browser or your device (a part file or a STEP model); insert a part several times for several instances (bracket<1>, bracket<2>). The first component is fixed; the others float.
- Mates: coincident, parallel, perpendicular, distance, angle, concentric, tangent and lock, between faces, edges and the assembly planes, with aligned or anti-aligned alignment and values that take equations. The Mates folder in the design tree edits, flips, suppresses and deletes them. The status bar shows whether the assembly is under, fully or over defined; conflicting mates are marked.
- Drag a component (Alt+drag, or Rotate Component, turns it): it moves only as its mates allow, so a lid on a hinge pin turns about the pin. Fixed components do not move.
- Mates: coincident, parallel, perpendicular, distance, angle, concentric, tangent and lock, between faces, edges and the assembly planes, with aligned or anti-aligned alignment and values that take equations. Distance and angle mates can be limited to a range instead of a value (the component moves freely between a minimum and a maximum). The Mates folder in the design tree edits, flips, suppresses and deletes them. The status bar shows whether the assembly is under, fully or over defined; conflicting mates are marked.
- Mechanical mates: hinge (concentric and coincident in one, with optional angle limits from where it was added), slider (a straight edge or axis, or two planar faces, on each component: one move along it and no turn, with optional travel limits), gear (two axes turning by a ratio of pitch diameters or teeth, reversible for internal gears), rack and pinion (the rack's travel by the pinion's pitch diameter or a distance per turn), screw (a nut travelling a pitch per turn, right- or left-hand), width (a tab centred in a groove), slot (a pin travelling along a slot between its ends), cam follower (a vertex, a roller or a flat face kept on the cam's profile faces as it turns; convex profiles, exactly for round faces; a profile with a hollow is refused with its depth) and universal joint (two shafts at an angle β, the output turning by atan(tan φ / cos β), with an optional joint point where their axes meet). Gear, rack and screw mates hold from wherever the components are when they are added, and their turns add up past a full turn.
- Drag a component (Alt+drag, or Rotate Component, turns it): it moves only as its mates allow, so a lid on a hinge pin turns about the pin, turning one gear turns the other, dragging a rack turns its pinion, and a drag stops at a mate's limits. Fixed components do not move.
- Motion studies (Motion Study): rotary motors (a constant speed in °/s or rpm, or oscillating; on a face or edge, or on a hinge), linear motors (constant speed or oscillating; along a face or edge, or on a slider) and mate drivers (a distance or angle mate's value at a constant speed, harmonic, or ramped between two values) drive the mechanism for a duration at a frame rate. Frames are calculated without freezing the interface (with progress, and a Cancel); the study stops and says why when a limit is reached or the mechanism locks up. Play, pause, loop and scrub through the motion; plot a point of a component (its displacement, velocity, acceleration, or its turn, angular velocity and acceleration) or what a mate measures against time, download the results as CSV, and check the frames for interference. Studies are listed in the design tree and saved with the assembly; editing the assembly puts their results out of date.
- Exploded view steps, interference detection with the overlapping volumes, a bill of materials (item, part, quantity, material; copy or download as CSV), mass properties with each part's material, measure, section view, and STEP (components as named solids) and STL export of the whole assembly.
- An assembly references its part files and keeps a copy of each, so it opens even when a part file is moved, shared or downloaded. Open Part edits a component's part; save it and go back, and the assembly takes the change (Update Parts reads the part files again).

Expand Down Expand Up @@ -83,6 +85,14 @@ It runs entirely in the browser. The geometry kernel is OpenCascade compiled to
- Every toolpath is checked against the part; Simulate cuts the stock operation by operation and plays it back with the tool, coloured by what is finished, what is left and where the part would be cut, and reports rapid moves through the stock and material above the flutes.
- Post Process writes G-code for Fanuc, Haas, LinuxCNC, Mach3/Mach4 or Grbl, in millimetres or inches, with arcs (G2/G3, helical) and drilling cycles (G81, G82, G83, G73) where the controller has them; preview it, copy it or download it.

**Analysis (static stress)**
- An Analysis tab sets up a linear static study of the part: the material (presets carry elastic modulus, Poisson's ratio, yield and tensile strength; custom materials take them too), fixtures, loads and the mesh, kept with the part in a Static Study folder of the design tree. Run meshes and solves it in a worker of its own, with progress and Cancel.
- Fixtures on faces: Fixed (no motion), Roller/Slider (no motion normal to the face; also a symmetry plane) and Fixed Hinge (a cylindrical face that may only turn about its axis).
- Loads: a total force on faces, normal to them or along a picked edge, face or axis (reversible); a pressure; gravity from the material's density. Values are in the part's units (N and MPa, or lbf and psi). Fixtures and loads refer to faces by name, so they follow dimension changes; ones whose faces are gone are marked in the tree.
- The mesh: 10-node quadratic tetrahedra whose boundary lies on the part's faces, edges and corners, with a coarse to fine setting (the automatic size follows the part's size and wall thickness) and its size, quality and volume reported.
- Results: von Mises stress, principal stresses, displacement (resultant and X, Y, Z), equivalent strain and factor of safety (yield over von Mises) plotted on the deformed shape (automatic or true scale, or undeformed) with a legend, the mesh on request and a probe that reads values where you click. The summary gives the largest stress and displacement and where, the smallest factor of safety, the reaction of each fixture against the applied loads (an equilibrium check) and the mesh and solver statistics; export it as CSV or a printable report. Stress above yield is flagged, as are fixtures that leave the part free to move (an unstable study is refused and the free motion named). Editing the part, the study or the material marks results out of date.
- Limits: linear static only (small displacements, linear elastic isotropic material: wood, being anisotropic, has no elastic properties), parts only (not assemblies), no contact, no thermal, modal or buckling analysis. The mesh is uniform: walls much thinner than the element size need a finer mesh (the volume check says so), and stresses at sharp inner corners and at the edges of fixed faces grow as the mesh is refined (singularities).

**Working with parts**
- Design tree with rollback bar, suppress, rename, hide/show, edit and delete with dependency warnings.
- Global variables and equations: type `=Width/2` in any dimension or feature value.
Expand Down Expand Up @@ -118,14 +128,15 @@ npm run build # type check, license check, production build in dist/
| Area | Where | Notes |
|---|---|---|
| Document model | `src/model` | Plain JSON parts: features, sketches, variables. Undo/redo by snapshots. Parameters may be expressions. |
| Assemblies | `src/model/assembly.ts`, `src/assembly`, `src/app/assembly`, `src/kernel/assembly.ts` | Assembly documents embed their parts as blobs. Rigid-body mate solver: damped least squares over mate residuals, six degrees of freedom per floating component, rank analysis for the definition, conflicts found by adding mates one at a time. Components' meshes are placed on the main thread (dragging needs no kernel call); the worker keeps the placed solids for measure, interference, mass, projection and export. |
| Assemblies | `src/model/assembly.ts`, `src/assembly`, `src/app/assembly`, `src/kernel/assembly.ts` | Assembly documents embed their parts as blobs. Rigid-body mate solver: damped least squares over mate residuals, six degrees of freedom per floating component, rank analysis for the definition, conflicts found by adding mates one at a time. Limits are one-sided residuals, left out of the rank analysis. Cam followers touch the convex outline of the profile (exact arcs, and a polygon of finely divided arcs and corners), by its signed distance or, for a flat face, its support function. A universal joint holds its two yokes square (one equation), which gives the Cardan relation. Gear, rack and pinion and screw mates relate the motion since the start of each solve, and every solve starts where the last ended, so turns accumulate. Motion studies (`src/assembly/motion.ts`) solve frame by frame from the frame before with the motors as hard goals; results are finite differences of the frames. Components' meshes are placed on the main thread (dragging needs no kernel call); the worker keeps the placed solids for measure, interference, mass, projection and export. |
| Sketch solver | `src/sketch/solver.ts` | Minimum-norm damped Gauss-Newton per independent cluster, with a rank analysis for degrees of freedom and redundant or conflicting constraints. |
| Profiles | `src/sketch/profiles.ts` | Planar face finding on the sketch graph; nested loops alternate material and holes. |
| Geometry kernel | `src/kernel` | OpenCascade (WebAssembly) in a Web Worker. Each feature is cached under a hash of everything before it, so edits rebuild only what changed. Faces are named after the feature and sketch entity that created them. |
| Renderer | `src/render` | WebGL2: shaded meshes with per-face state in a data texture, screen-space thick edges, GPU picking with depth (asynchronous readback for hover), section clipping, render on demand. |
| Interface | `src/app`, `src/ui` | No framework. CommandManager, design tree, PropertyManager panels, sketch editor, dialogs. |
| SolidWorks import | `src/formats/sldprt` | Reads the SolidWorks container (2015+ chunk format and the older OLE2), decodes the embedded Parasolid transmit and writes it as exact STEP for the kernel. Runs in the geometry worker. |
| CAM | `src/model/cam.ts`, `src/cam`, `src/app/cam` | Toolpaths are generated in a worker of their own from a fine mesh of the part, in the setup's work coordinates. Drop-cutter (`src/cam/dropcutter.ts`) gives the lowest height a flat, ball, bull nose or conical cutter can reach at a point (face, edge and corner contacts, exact where a closed form exists). Where the tool can be at a height is where that is lower: its boundary is traced by marching squares with each crossing refined by bisection on the drop-cutter, and the passes inside it are offsets of a distance transform, cut from the innermost out. Parallel finishing follows drop-cutter heights along lines. The simulation lowers a height map of the stock along every move. Post processors write the moves with arcs fitted to them. |
| Analysis | `src/model/fea.ts`, `src/fea`, `src/app/fea` | Static stress analysis in a worker of its own, loaded on first use. The mesher (`src/fea/mesher.ts`) fills the solid with a body-centred cubic lattice (isosurface stuffing: exact inside tests by ray crossings of the kernel's triangulation, lattice points near the boundary warped onto it, lattice tetrahedra clipped with fixed stencils), moves vertices onto the part's corners and onto the edges between faces (splitting edges where a move would spoil an element), smooths, and adds midside nodes on the curved surface. The solver assembles 10-node tetrahedra into node-block sparse rows, applies fixtures as constraints in each node's own frame, and solves with conjugate gradients preconditioned by smoothed aggregation multigrid (rigid body modes as the near null space; block Gauss-Seidel smoothing). Fixtures are checked against rigid body motions before solving. |
| Assistant | `src/assistant` | Tool-calling agent on Puter AI. Tools work on the document through a host interface (the app, or the kernel in Node for tests); each change rebuilds and is checked, failing steps are reverted, and a message's changes are squashed into one undo step. |
| Platform | `src/platform` | Puter.js access, files (Puter or browser storage), theme. |

Expand Down
Loading
Loading