- Linked bodies. A copy (Move/Rotate, Mirror, Scale with Copy on) or a pattern made with Link on, and what it was made from, are a group: a step that changes one of them - an edge rounded, a hole cut, something joined on - changes every other the same way, each where it stands (turned, mirrored). Moving or turning one only moves that one, and it still follows; one deleted leaves the others; a linked copy of a linked copy is of the same group. Both patterns have a Link switch now. (Link only did anything for freeform copies before.) tests/linked.test.ts, 17 checks. - Fill Pattern, a sketch tool under Draw: tap inside a closed shape and it is filled with Lines, Crossed lines, Zigzag or Waves from edge to edge (ending exactly on the shape's edge, stopping at holes), or with Dots, a Honeycomb, Squares or Diamonds kept wholly inside it; Spacing (or the Gap between shapes), Size and Angle set, shown as they change. The strips and cells are shapes of the sketch: extruded or cut, a texture. A filled shape tapped again: its pattern changed or removed. The pattern is kept with the sketch and made again when the sketch's curves change (a rectangle made taller: 9 cells became 43). Too fine a spacing (thousands of curves) is refused in plain words. tests/fillpattern.test.ts, 28 checks. - A freeform solid that is finished is a body like any other: its faces, edges and corners have every tool a body's have (they were held to Move, Mirror, Pattern and Delete Body), its edges their dot, its corners their gimbal and Move Vertex. Only a freeform left as an open surface keeps its own few. Edit Freeform is beside a freeform body double tapped - also after other steps were done on it - and in History. - The right column: Shaded and Settings are lit while their window is open, as the three at the left are while they are on. Their windows (Units & grid and the others too) are placed in the room there is - under the top bar, the view cube, Items and History, over the line, undo / redo and the guide text - on every screen, and scroll inside when longer; on a phone on its side, beside the view cube. (They came down over the line on a phone.) - More: Update under Install app; Guide text and Offline mode each with a switch (they said On / Off in words); Help above Feedback; About. - Units & grid open, not locked: the size said on Lock grid size, in the box and in the note follows the zoom as it changes. - A sketch's Draw opened with no tool on: Line is on and the list stays open - a tap on the grid draws, a tap in the list takes another tool. - The line at the bottom is as wide as what is on it, up to all the room between undo and the right edge (it stopped at 980): a sketch's picked line or shape has all its sizes and buttons in view on a wide screen. In the app: the nine tried - the windows at 390 x 800, 844 x 390, 768 x 1024 and a desk screen (nothing over anything); a rectangle filled with lines, then a honeycomb, then made taller; a circle filled with waves; a freeform box double tapped, a corner, a face and an edge of it picked; a pattern's Link switch; a sketch's line and rectangle picked on a 1577 wide screen (the line 1050 and 1115 wide, nothing to slide). Tests: all 178 test files pass (mouse.test.ts's 30 s limit on a shell was missed once with five running at a time: 39 of 39 run alone). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
superGeometry.app
A free 3D design (CAD) app that runs in your web browser - on a computer, an iPad or Android tablet, a phone, or a VR headset like the Meta Quest 3. No account, no download, no subscription. Your work stays on your device.
👉 Open it: superGeometry.app
Use it to design things for 3D printing, woodworking, laser cutting or just to think in 3D: brackets, boxes, vases, knobs, threads, enclosures, furniture parts…
Contents
- The idea in one minute
- Your first part: a box with a hole
- Second part: a vase
- Moving around
- The screen, piece by piece
- Sketching
- Making and changing solids
- Exact sizes, variables and the numpad
- History: change anything later
- Saving, opening, exporting, printing
- Tips for phones, tablets and headsets
- Keyboard shortcuts
- When something doesn't work
- For AI assistants
- For developers
- License
Inside the app, More → Help shows what every button does.
The idea in one minute
Almost everything follows the same rhythm:
- Draw a flat shape - a sketch - on a plane or on a face of a part.
- Turn it into a solid - pull it up (Extrude), spin it around an axis (Revolve), or move it along a path (Sweep).
- Select something and change it - tap a face, an edge or a whole body: it can be dragged by itself (or by its arrow or dot), or typed; the buttons beside it hold the next likely tools, Delete and More, and the line at the bottom has every tool by group.
- Every step is remembered in History, so you can go back and change a size later - everything after it updates.
There's no wrong order. Undo (bottom left) is always one tap away.
Your first part: a box with a hole
- A new project opens straight in a sketch on the floor, looking down at it, with Line on. (Any other time: tap Sketch on the line at the bottom, then a plane or a flat face.)
- Tap Draw, then Rectangle; tap one corner, tap the opposite corner. While you draw,
type a number for an exact size (e.g.
40, Tab,30). The ways a tool can be used (Rectangle: Center, Diagonal, 3 Points) are on the line while it is on. - Tap Draw, then Circle; tap a centre inside the rectangle, tap again for the size
(or type
8). - Tap Exit at the end of the line. The view swings round to a three-quarter view.
- Tap inside the rectangle (but outside the circle): that region turns blue
and an arrow appears. Drag the shape itself, or its arrow, up - or type
20: drawn on a plane, up makes a new body (down would cut). Tap the tick. You now have a box with a round hole. - Tap the top face of the box and drag it to make it taller - the hole follows. Tap an edge and drag it outward for a rounded edge (fillet) or inward for a bevel (chamfer). Tap the hole's wall: Thread is on a button beside it.
- More → Print / Share says whether it is fit to print and saves it as 3MF, STL or STEP.
Second part: a vase
- Sketch on the XZ plane (a standing plane).
- Draw the outline of half the vase with Line and Spline: a vertical line on the centre (this is the axis), a line along the bottom, a spline for the side and a line across the top, back to the axis.
- Exit the sketch, tap the region, then Revolve and tap the vertical line as the axis. 360° makes a full vase.
- Want a thread or a spring instead? In Revolve, drag the arrow on the axis (Travel) and set the angle above 360°.
Moving around
| Mouse | Touch / pen | Headset controller | |
|---|---|---|---|
| Turn the view | left-drag empty space | one-finger drag | drag with the trigger |
| Move the view | right or middle-drag | two-finger drag | - (use the view cube) |
| Zoom | mouse wheel | pinch | thumbstick / pinch |
| Select | click | tap | point and trigger |
| Select a whole body | double-click | double-tap | double-trigger |
| Deselect | Esc or click empty space | tap empty space | tap empty space |
| Step back | right-click or Esc | - | - |
-
Right-click steps back: first what's half done or picked, then the drawing tool, then out of the sketch; in other tools it backs out. With something selected, right-click shows its tools by the pointer.
-
A tap picks that thing and lets the last pick go; tap it again to drop it. Shift, Ctrl or the + beside the pick's name adds to the pick. With a face or an edge picked, Whole body beside its name picks the body (a double tap on the model does too).
-
A list opened from the line stays up while you turn, move or zoom the view; it goes when you choose something in it or tap the model.
-
Fit: double-tap the view cube to get everything on screen.
-
View cube (top right): tap a face for a straight-on view (Top, Front…); ⟲ ⟳ at its top corners turn the view by 90°.
-
Orbit centre (the cube's bottom-left button): tap it, then tap a point - the view now turns around that point. Fit resets it.
-
Views (the cube's bottom-right button): standard and saved views; tap again to close.
The screen, piece by piece
Top bar (top centre) - the project name (tap to rename), File (new / open / save / export), Items (a list of everything, with eyes to hide or show and folders to group; each kind - Bodies, Sketches, Planes & axes, Images - folds away under its heading), History, More (fullscreen, Help, About, support).
The line at the bottom is how every tool is reached. Tap part of the model: a tag over the line names what is picked, and the line shows the groups - Sketch, Freeform, Transform, Construct, Modify, Combine, Create - each a list: what can be done with that pick first, then the group's other tools in a quieter part (each asks for its own pick as it starts). The group whose list is open stays lit. More, at the end of the line, holds only what is not on the line already: Insert, BIM, Section View, Measure, Variables, Print / Share, and the pick's own (Delete, Colour, Isolate). Tap a tool and the line becomes its settings: tap a number to type it or drag it sideways, tap a word to change it, tap the model to fill a blank; the tick finishes, the cross takes it back. On a phone held upright a tool shows its size and what it still needs tapped, and the rest is one word, Options. In a sketch the line holds Draw, Modify and Transform.
Looks ahead - with a mouse, the pointer over a tool draws what it would do in dashed yellow on the model before anything starts: a face's outline lifted (Extrude, Offset Face) or sunk (Shell), the lines a Fillet or Chamfer runs between, a row or a ring of copies for a pattern.
Quick buttons - round buttons beside a pick with its next two likeliest tools (a flat face Sketch and Move, a round face Thread and Fillet, an edge Chamfer and Move, a body Fillet and Mirror), then Delete, then More, which opens every other tool that pick has. In a sketch: Construction and Delete.
Right edge - Fit, Display (shaded, wireframe, X-ray) and Settings: one sheet with Units & grid, Snapping, the number pad and Appearance, each row saying how it is set now.
Bottom left - Undo / Redo.
A tool's settings - the values for whatever you're doing (sizes, counts, options) are the words on the line while the tool is open, with Cancel and Done at its end. The size that is dragged is also in a box on the model: tap it to type.
Sketching
Tap Sketch and pick where to draw: an origin plane (tap it, or the XY floor / XZ front / YZ side buttons), a flat face of a part, or one of your construction planes (listed by name on the line). In a straight-on view (Front, Top…) Sketch goes on the face you're looking at. Sketches on a face measure X / Y from the model's origin.
Drawing tools: Line (keeps going from the last point; tap the first point to close, which ends the line), Arc (two ends, then the bend - or by centre), Spline (smooth curve through points; Fit or Control points, or Draw: press and drag freehand like a pencil - the stroke is cleaned up into a few lines, arcs and smooth curves, corners kept, so an extrusion gets a handful of faces, not hundreds; end where you began to close it), Rectangle (diagonal / centre / 3 points), Circle (centre, 2 points or 3 points), Ellipse (with an Angle), Polygon, Text (pick a font - Sans, Serif, Mono, Narrow, Bold caps, Script - or Import font… a .ttf / .otf / .woff of your own; each letter keeps the font's curves as a few lines, arcs and smooth curves, so extruded text has a face per side, not hundreds), Project (copies body edges or other sketches' curves here).
Exact points on touch screens: right after the first tap of a line, rectangle, circle, polygon or ellipse the line has X / Y for that point (a fingertip can't hit a 1 mm grid). A line then takes Length and Angle, or Across and Up for a slope ("in 10, up 12"); an arc by centre takes the centre, Radius and the Start and End angles. Grid snapping follows the zoom (1 / 5 / 10 mm) so a tap lands where a fingertip can tell apart. A typed shape is placed with Enter or Done.
Drawing guides (on a curve, midpoints, extensions, parallel / perpendicular, where two cross) are kept as constraints. Dragging a point onto another joins them.
Fill Pattern: a closed shape filled with lines from edge to edge (straight, crossed, zigzag, waves) or with small shapes (dots, honeycomb, squares, diamonds), its spacing, size and angle set; the strips and cells are shapes to extrude or cut, for textures.
Edit tools: Offset Edge (parallel copy; whole outlines too), Fillet and Chamfer (round or bevel a corner where lines or arcs meet; tap the next corner to go on), Mirror (the selected shapes, across a line or an axis), Trim (cut away between crossings - tap, or swipe across several - or Join two lines on one axis), Align (put a line onto another line's axis), Extend (arcs carry on along their circle), Split, Move/Rotate (gimbal, or Rotate About a tapped centre), Scale, Pattern (linear with an arrow you drag, or circular around a centre), Delete. Tools with options start with the option you used last. Tapping empty space finishes Offset, Move, Scale, Pattern, Rotate and Mirror.
Select (in a sketch): tap curves to select them, double-tap for a whole shape. Drag points or curves, or use the gimbal. Tap an arc or circle to type its radius. The panel's Select last picks what your last step made.
Construction lines are helpers: they guide the drawing but don't make regions. The Construction / Regular button switches the selection (or new lines).
Constraints keep a drawing in shape: horizontal, vertical, parallel, perpendicular, tangent, equal, coincident, lock, distance, angle and size dimensions. Select one or two things, then tap a constraint (the first thing picked stays put, the others adapt to it). Constraints are strict: one that contradicts those already there isn't added - remove the old one first, or switch Auto constrain off; a typed value that can't be met is refused rather than bending the sketch. Their marks are small and faint, a colour per kind, and never catch a tap meant for the drawing. Show or hide their column with the Constraints button at the right edge while sketching.
Any closed shape becomes a region (blue when selected) you can extrude, revolve, sweep or loft. Overlapping shapes split into separate regions. Tapping a region shows Extrude's arrow - drag it or the shape itself, or type a height - with Sketch and Revolve on the buttons beside it. While the arrow is still at 0, tapping more regions of the same sketch adds them; All shapes takes every shape at once. Double-tap a shape to open its sketch. A sketch stays in view until every region of it is used.
Making and changing solids
- Extrude - pull a region or a face. Operation (Auto, New body, Add, Cut, Intersect): Auto goes by direction - on a plane + is a new body and - a cut, on a face out adds and in cuts. Taper end % sizes the far end (100 none, 0 a point: a spire, a pyramid or a cone in one step) - type it or drag the box left / right. Extrude starts at the last distance.
- Revolve - spin a region around an axis (a separate line, a side of a rectangle or outline, a round edge, or one of your axes by name); Travel moves it along the axis at the same time (threads, springs).
- Sweep - move a region along a path (one tap takes the whole joined run of lines and arcs; tap a piece again to drop it). Loft - blend between profiles.
- Shell - hollow a body; tapped faces become openings (Clear empties the list).
- Fillet / Chamfer - tap edges, drag the dot (outward rounds, inward bevels) or type a size in the box on the model; variables work too. A fillet that can't be made leaves the edge sharp with a note in History.
- Direct touch - what is picked is dragged by itself: a face pushed or pulled, a sketch's shape pulled up into a solid, an edge rounded, a body slid over the floor. On a touch screen press and hold a face, shape or edge and pull, in one touch.
- Faces - drag the arrow to push/pull a face: its neighbours follow, curved ones included; fillets next to it are kept. Move/Rotate Face (a gimbal on the face) moves it every way and turns it about its normal. A picked face lists only what works on the face; body tools (patterns, mirror, translate, move body) come with a picked body. Scale, Replace (onto another face's plane) or Delete a face, fillet or chamfer: the neighbours carry on along their own surfaces until they meet, as if it was never there.
- Edges and corners - a straight edge picked shows its Move/Rotate gimbal; the faces around it tilt to follow (Fillet / Chamfer are in the list). Every edit is checked: one that would tear the body open stops with a message instead.
- Transform - Move/Rotate (gimbal, with a Copy switch: after a drag the panel stays for exact values; copies are independent bodies, Link keeps a freeform copy following its original), Scale (uniform, or X/Y/Z on freeform bodies), Translate (from a point to a point; the origin, 0, 0, 0, can be tapped too), Mirror, Rotate Around Axis (a round edge gives an axis through its centre), Patterns. A body of a pattern picked: Whole Pattern selects the rest.
- Union / Subtract / Intersect - combine bodies (they need to touch to unite), cut one from another, or keep the overlap. Subtract and Intersect open a tool: tap the body to change (marked +), then the bodies to cut with (marked −); Keep modified body / Keep subtracted bodies leave copies. Two overlapping bodies picked: all three are in the list. Many tools at once are one checked cut.
- Split Body - by a plane (yours, by name) or a face.
- Thread - tap a round face or a hole's rim: a shank at the nominal size gets an outside thread, a hole at the tap-drill size an inside one. The pitch starts at the ISO coarse pitch (the line says what it makes, e.g. M10 × 1.5); left-hand as an option; free ends get a 45° lead-in.
- Repair Body - fixes an imported or broken body (gaps, bad faces, slivers, inside-out) without changing its shape or size.
- Fill to Plane - an open freeform surface becomes a solid by filling the gap down (or up, or across) to a plane.
- Freeform - organic shapes: start from a box, sphere, cylinder or plane (its size and rows on the line) and pull its cage points, edges and faces. Tap picks the closest point, edge or face (tap a face again for the one behind it); press on empty space and drag a box to pick the points inside (on a touch screen: switch on Pick in a box on the line, and a finger draws the box - the points behind are picked too, a whole slice from a side view). Move / Turn / Scale take exact X, Y, Z values on the line. Cage tools: Extrude faces (Length, Bend, Taper and Steps sliders - a spout in one go), Bridge faces (two faces become a tube; two looking the same way arch into a handle, with Arch and Segments), Inset, Add edge loop, Add detail. Symmetry mirrors every move across X / Y / Z, across a tapped cage edge, or midway between two facing faces picked first; the plane is kept with the shape and shown with its mark. Points picked on an open border → Extend surface adds a face beyond each border edge between them. Undo / Redo step through the cage changes. A shape that passes through itself shows red and is refused. Delete faces to open it up; tap an edge of a hole → Fill hole to close it again, or Thickness… to turn the open shape into a solid wall. A hole with an odd number of edges is closed by making the cage twice as fine first (the shape doesn't change). Connect: pick border edges (Shift adds) on one surface or on two - two edges get a face between them, two rows a strip, two hole rims a tube; two surfaces become one, ready for a Thickness. Both sides need the same number of edges.
- Copy a sketch to another plane - tap a region of a finished sketch → Copy to Plane: drag the blue arrow to a parallel plane, or type the distance (Copy off moves it instead).
- Construct - helper planes: offset (drag its arrow), midplane, through 3 points, on a curve at a point, perpendicular to an edge at a point, through an edge at an angle, parallel to a face at a point. Each kind has its own small mark at the plane's corner (⇡ ⇹ ∴ ∿ ⊥ ∠ ∥) and on its icon. Axes from a face or edge, or along X / Y / Z through a point you type.
- Colour - ten soft colours or Custom… for any colour; and how see-through a body is.
- Section View - cut the view (not the part) to look inside; the cut shows as a solid face with a thick outline. Place Plane on the line puts a construction plane where the cut is (to sketch on or split with).
- Measure - distances and angles; pin a measurement to keep it.
Exact sizes, variables and the numpad
- Every drag shows a value box by the pointer that stays when you let go:
tap it to type. While dragging or drawing, just type a number - it goes
into that box. Enter confirms. Press on any value box and drag left or
right to turn the value down or up like a wheel. Units come from Units & grid (mm, cm, m, in, ft);
you can also type units (
2in,5cm) and maths (40/3 + 2). - Variables are named sizes like
wall = 3. The Variables button (under Measure) switches them on: a tag shows where each one acts on the model - ↔ a length, ∠ an angle, # a number - and follows it as the model moves. Tap a tag to type its value or a formula, or drag the value: the model follows as you go, and lines show what it's made from and what uses it. The line has New Variable and the whole list; tap Variables again to switch off. Type them into any field (wall * 2) or pick them from the ƒx menu next to a value. Change the variable later and everything using it updates. A size that follows a variable says so on the line (od / 2 = 60 mm). Formulas take+ - * / ^, brackets, units (2 in + 5 mm) andsqrt,abs,sin,cos,tan,asin,acos,atan,floor,ceil,round,min,max-floor(length / pitch)is how many fit. Changing the project's unit changes no size: plain numbers in formulas are given the unit they were typed in. - The on-screen numpad (Settings at the right edge, Number pad on screen) replaces the system keyboard for value boxes. It's on by default on phones, tablets and headsets. Tapping a box selects its value, so typing replaces it; nothing is applied until you press ↵. After the second tap of a line, its length box opens right away. Drag the numpad by its grip where you want it; double-tap the grip to put it back by the box. Its ƒx key adds + × / and a key per variable (tap one to type its name), and + New makes a variable from the value in the box.
History: change anything later
The History panel lists every step. Tap a step to edit it (its tool opens with the old values). The eye switches a step off; the bin deletes it. Hover a step to see what it works on, outlined in dashed orange. A sketch's own steps fold out from the ▸ next to it. Select several steps (Ctrl/Shift+click) to group them: fold, rename, switch all off or on, ungroup. Tick steps in a group and Ungroup (beside Group) takes just them out, in their own place in the timeline - a group they were in the middle of splits around them. If a step can't be rebuilt after a change, it's marked and the reason is shown.
Saving, opening, exporting, printing
- Your project saves itself in this browser as you work, and every project you've worked on is kept on this device.
- File → Open shows them as a gallery of pictures, newest first (it also
greets you each time the app opens): tap one to carry on with it, start a
New project, or Open file… for any
.superfile (it joins the gallery); with many, the row scrolls side to side. Each card can be saved as a file or deleted. They live in the browser's storage for this site: More → Update keeps them, but clearing the site's data in the browser's settings deletes them. - File → Save project downloads a
.superfile (keep it as a backup or move it to another device). - File → Export STL or Export 3MF for 3D printing (3MF keeps body names and colours), Export STEP for other CAD programs. With bodies selected (or isolated), only those are exported. On phones and tablets the share mark next to each export (and Save) sends the file straight to another app - mail, messages, a slicer…
- File → Export DXF (sketch) saves a sketch's curves as a 2D drawing for laser cutters, CNC and drawing programs: open Items, tap the sketch, then File → Export DXF. Construction lines go on their own layer.
- File → New project starts an empty one; the open project stays in the gallery.
- Insert brings in STEP, STL, SVG and DXF files, and images to trace over (on the floor, front or side, its middle at the X / Y you type).
Tips for phones, tablets and headsets
- Deleting takes two taps in Items, History and the project gallery: the first turns the bin red, the second deletes. It goes back by itself after 3 seconds, or at a tap anywhere else. Delete in the tools and in a tool's window takes one tap (Undo brings it back).
- With a pen, fingers are ignored while the pen touches the screen.
- iPad / Android: More → Fullscreen gives the whole screen. On phones and tablets the app offers to be installed on the home screen (or More → Install app); on iPhone/iPad it's Share → Add to Home Screen.
- The window the app opens with has a Full screen button.
- Fit frames the model in the part of the screen the bars leave free.
- Meta Quest: open the site in the Quest browser; buttons and pick distances are bigger, and the numpad is on.
Keyboard shortcuts
S Sketch · in a sketch: L line, A arc, I spline, R rectangle,
C circle, G polygon, P project, O offset, T trim, E extend,
M move, S scale, V select · outside: E extrude, F fillet,
M move, N translate, U union, F2 edit freeform · Del delete ·
Enter done · Esc cancel / deselect · Ctrl Z / Ctrl Y undo / redo ·
Ctrl S save · F fit.
When something doesn't work
- A step turns red in History: tap it to see why and change its values. Often a size became too big or a face it used was removed.
- "Overlap them more": a union or cut that the geometry engine can't do reliably (two bodies only just touching) is refused instead of giving a wrong shape - move them so they overlap a little more.
- An imported body won't edit: try Tools → Repair Body first.
- "Not closed" warning: a body has a gap (open edges shown in orange). A freeform surface without thickness is open on purpose.
- Can't find a tool: tools only show when they can be used - select the right kind of thing first (a face, an edge, a body, a region).
- Something is hidden: check the eyes in Items, and whether Isolate is on.
- A "Working…" spinner: the geometry engine is busy; complex steps can take a moment. Stop next to it drops the work and takes back the change that started it (like an undo).
- A change you expected isn't there yet: when a newer version is out, More pulses and its Update item says NEW. More → Update loads the newest version right away (your project is kept).
For AI assistants
This section describes the app so an assistant can explain it, guide a user step by step, or read and write project files.
What it is. A browser-based parametric solid modeler. Geometry is OpenCascade (via replicad) running in a Web Worker; the UI is plain DOM over a three.js view. Units are millimetres internally; the display unit is a setting.
Interaction model.
- Nothing selected → the line at the bottom has every tool (one that needs a pick asks for it as it starts): Sketch, Freeform, Extrude, Revolve, Sweep, Loft, Shell, Transform ▸ (Move/Rotate, Scale, Translate, Mirror, Rotate Around Axis, Patterns), Boolean ▸ (Union, Subtract, Intersect), Construct ▸ (planes, axes), Insert ▸ (variables, images, files), Tools ▸ (Offset Face, Offset Edge, Split Body, Fill to Plane, Thread, Repair Body…).
- Something selected → each group lists the tools valid for it first, then its other tools (those ask for their own pick). The pick is dragged by itself or by its handle: faces an arrow (offset), edges a dot (fillet, inward a chamfer), bodies a gimbal (move/rotate, with Copy; its middle dot moves the pivot). A sketch region gets Extrude's arrow plus Revolve / Sweep / Loft.
- Every operation is a feature in History; editing a feature replays everything after it.
- Values: type while dragging, or tap a number on the line at the bottom (the tool's options); expressions and variables are accepted everywhere a number is.
Project file (.super, JSON).
{
"format": "super", "version": 2, "name": "Bracket", "units": "mm",
"variables": [{ "name": "wall", "expr": "3" }],
"hidden": ["<item id>"], "names": { "<body id>": "My name" },
"features": [
{ "id": "s1", "type": "sketch", "name": "Sketch 01",
"plane": { "origin": [0,0,0], "xDir": [1,0,0], "normal": [0,0,1] },
"entities": [{ "id": "r", "kind": "rect", "center": [0,0], "w": 40, "h": 30, "rotation": 0 }],
"constraints": [] },
{ "id": "e1", "type": "extrude", "name": "Extrude 01",
"source": { "kind": "profile", "sketch": "s1", "regions": [{ "c": [0,0], "a": 1200 }] },
"distance": 20, "mode": "auto",
"exprs": { "distance": "wall * 6" } }
]
}
- Sketch entity kinds:
line {a,b},arc {a,m,b}(through 3 points),circle {center,radius},ellipse,rect {center,w,h,rotation},polygon {center,radius,sides,angle},spline {points,closed,mode},polyline {points,closed};construction: truemarks helper geometry. Sketch coordinates are 2D in the sketch plane (xDir, andnormal × xDir). - A region reference
{c, a}is the region's centroid and area in sketch coordinates (it survives small edits). - Feature types:
sketch,extrude,revolve(axis,angle,travel),sweep,loft,shell,fillet/chamfer(edges,radius),boolean(union/subtract/intersect;keepTarget,keepTools),transform(move,scale,scaleXYZ,mirror,linear,circular),split,plane(kind:offset,mid,3pt,curve,perp,angle,parallel),axis,moveFace(face / edge / vertex),scaleFace,replaceFace,deleteGeom,freeform(cage,surface,thickness,symmetry {origin, normal}),thread,repair,import,image. - Faces and edges are referenced by geometry, not index:
faces
{body, center, normal, area}, edges{body, mid, dir, length}. exprsmaps a field path ("distance","op.translate.2") to an expression; it's evaluated with the project's variables on every rebuild.
Scripting in the page. In the browser console, window.supergeometry is
the running app: supergeometry.store.doc is the project (as above),
supergeometry.store.commit(doc => { … }) changes it as one undoable step,
and supergeometry.result holds the last rebuild (bodies, errors).
For developers
npm install
npm run dev # local dev server (add --host to open it from a tablet)
npm run build # static site in dist/ - host it anywhere
npx tsx tests/engine.test.ts # one of the test suites in tests/
- docs/ARCHITECTURE.md: how it's built and why
- docs/FEATURES.md: feature list
Stack: TypeScript, Vite, three.js, replicad + OpenCascade (WebAssembly), no UI framework. Project autosave in IndexedDB.
License
AGPL-3.0-or-later: anyone can use, study, change and host it, but modified
versions offered to the public must stay open source. OpenCascade (via
replicad-opencascadejs) is LGPL-2.1; replicad and three.js are MIT.