Repository navigation
Releases
HCAD v0.37.0 - sweep rebuilt, and bores export round
Sweep is the batch.
Sweep
- Both ends now cap. The sections were built in f32, which quantises them onto a grid about 6e-7 wide -- and that fuzz is a section's thickness. truck refuses to cap a wire over 1e-6 thick, so the far end of a sweep came back open (96 boundary edges, exactly one rim). In f64 the same section is 7e-15 thick.
- The start cap sits on the plane the profile was drawn on, cut obliquely where the path leaves at an angle -- like a pipe off a flange. It used to run past that plane (3.8 on badsweep2) and sit visibly cocked over.
- Corners are mitred. The section was square to the bisector already but at its drawn size, so walls met at a neck; it is now stretched across the turn by 1/cos(half the turn). An L-path tube went from 496.0 to 502.1 against a true 502.65.
- A path the tube cannot physically follow says so instead of tying a knot, judged on how far the profile reaches toward the inside of the bend.
- Picking a sweep's two sketches draws both of them, profile and path, in the loft picker's colours.
Splines
- Centripetal Catmull-Rom replaces uniform. Uniform overshoots when spans are unequal: three points 24.8 and 74.6 apart gave a curl of radius 5.5 at the start of an otherwise gentle curve, which a sweep could not follow. Now r=28.2. Every corpus part rebuilds byte-identical.
STEP export
- Bores export as real cylinders -- 10 of 50 corpus parts, 20 cylinders. tubetest went from 388 planes / 676 KB to 4 planes + 3 cylinders / 29 KB; squarehelper 139 planes / 230 KB to 11 planes + 1 cylinder / 23 KB.
- An extrude carries its sketch's arcs onto the mesh, and the tags survive the booleans.
Sketching
- Other sketches stay visible (dimmed) while you draw, so a profile on one plane and a guide on another can be lined up.
- A loft whose profile lost its region says so instead of silently skinning a different one.
Changes since v0.33.0 (the previous GitHub build)
Windows-only nightly builds landed on the dev server between GitHub releases; notes below, install boilerplate trimmed.
v0.36.0 — no more stray lines on filleted parts
Edge detection stops painting strays, and a flush no-op boolean returns the body untouched.
Phantom rings are gone. The edge detector trusted Manifold's vertex indices, but a flush boolean leaves duplicate vertices along its seam. Edges there never paired up, and every unpaired edge was drawn as an open boundary - a 202-segment ring around one flush extrusion, plus general stray noise on filleted parts. The detector now welds vertices before building adjacency, so flush seams pair, read as coplanar, and vanish.
Needle triangles no longer draw junk or block face merges - their normals are numerical noise, so they are flagged and skipped.
Fillet seams are now detected natively. The line where a fillet band lands on the face it blends into used to be merged away entirely (every body reported zero tangent edges). An edge whose dihedral breaks the rate the surface steps at across it is now emitted as a tangent seam.
A boolean that changes nothing returns the body. A boss snapped perfectly flush still ran through Manifold and baked doubled sheets along every flush wall - 121 fold pairs on one part, beyond any nudge's repair. A union whose volume does not move now leaves the body untouched.
A new scenario test pins both halves: a flush boss must paint no phantom ring, and the wall-side fillet seam must be natively detected.
v0.35.0 — fillets blend, thin slivers fall
Fillet quality release.
- A fillet that meets an earlier fillet now blends onto it tangent — the ball rolls onto the neighbouring fillet's surface instead of leaving a cantilevered sliver or a truncation step.
- Flush cuts and fills no longer leave hair-thin films: the boolean layer measures thin-film area, tries both signs of its tangency nudges, and refuses candidates that fold back on themselves.
- Fillets saved in older documents survive walls that newer cut-clearance moved by a hair — face matching now ranks by how much of the edge a face borders, and picks must run along an edge to select it (no more seams drawn down the outer wall).
- Partial-arc picks, tube rims (outer, bore, both), box rims with corners, concave boss bases and slot rims are all pinned by a new end-to-end scenario suite (manifold, exact volume, band on the ideal surface, working selectable edges).
- Corner spheres tessellate to match their cylinders — no more spurious hairline edges at rounded box corners.
v0.34.0 — a flush join no longer seals a sheet inside the part
A part built by joining a foot flush under a plate, with the same bolt holes running through both, kept a sheet sealed inside it where the two met. Buried in material it was invisible; a later cut opened the space around it and it stood there as a thin wall in the middle of the cut that nothing would remove — because a cut removes material, and a sheet is not material.
The join is now checked. Every boolean judges its own result and repairs a join that leaves a sheet, instead of trusting the kernel's report of success. A part that only touches itself along a line is left alone: that is a real shape, not damage.
v0.33.3 — stray circles can no longer break a part
A single stray circle could quietly corrupt a part built from perfectly ordinary operations.
Sketching
- The circle tool no longer creates a circle from a click that never moved. A press and release in one spot, or a double-click on the centre, used to leave a ⌀0.02 circle behind — invisible on screen, and impossible to notice. What counts as a real gesture scales with the zoom, so genuinely small circles are still drawable by zooming in.
- A circle too small to build with is skipped when a profile is made, instead of producing a broken body.
- Opening a part reports any such circle, with its diameter, so one already in a file can be found and deleted.
Why it mattered
Read as a hole, a stray ⌀0.02 circle is a shaft thinner than the tolerances the modelling kernel works at. The extrude came out broken before any later feature ran, and every cut after it inherited the damage — one part went to 62,517 triangles and a corrupt body where the same shape is 1,244 and sound. The cuts were never at fault.
Windows installer attached. Requires the VC++ Redistributable, which the installer bundles.
v0.33.2 — slot dimensioning
A slot can now be dimensioned every way a drawing asks for it. A slot is a single entity, which left very little to put a dimension on — its length had no geometry at all, and its thickness could only be given as a width across.
Slots
- Straight and Centerpoint slots carry a construction centre line joining the two arc centres. Dimension it to set the slot's length. It guides only, so the extrude still sees just the slot outline. Arc slots get none — a straight line between their ends measures a chord, not a length.
- Thickness three ways, whichever the drawing uses: click a round end for its radius, click a side for the width across, or pick both sides for a line-to-line distance. All three drive the same size.
- Picking a slot's two sides previously threw away the dimension the first pick had made. Fixed.
- A Centerpoint slot keeps the centre you click, as a real point held between the two ends — something to snap to, dimension from, and position the slot by. It stays the middle when the slot is lengthened.
- Slot ends continue to lock onto body features and existing points.
Windows installer attached. Requires the VC++ Redistributable, which the installer bundles.
v0.33.1 — sliver and sketch-input fixes
Fixes for three things that showed up in normal use since 0.33.0.
Sketching
- A dimension's value no longer swallows clicks meant for the sketch. Editing an existing sketch, the Dimension tool could appear to loop — every click placing another dimension — a box select could stick on screen with no way to clear it, and a circle under about half a millimetre could not be picked at all because its own dimension took the click. A label floats above the sketch, and anything under the pointer there was skipping the sketch's input handling entirely.
- A dimension on a very small circle is placed clear of it, instead of on top of the geometry it measures.
Cuts and fillets
- A cut whose wall lands exactly on the body's — a circle snapped to an existing cylinder's radius — no longer leaves slivers along that wall.
- A fillet whose rim runs out into a cut no longer leaves a zero-thickness wall standing where the two meet.
- Filleting part of a curved rim is faster in the cases that previously fell back to a slow path.
Windows installer attached. Requires the VC++ Redistributable, which the installer bundles.
Install
Windows: download hcad-v0.37.0-windows-x86_64.exe and run it.
Linux (AppImage): download hcad-v0.37.0-linux-x86_64.AppImage, then:
chmod +x hcad-v0.37.0-linux-x86_64.AppImage
./hcad-v0.37.0-linux-x86_64.AppImageSelf-contained — no install needed. Requires a working Vulkan driver and xdg-desktop-portal (standard on modern desktops). Built for x86_64, glibc 2.39+ (Ubuntu 24.04+ / Fedora 40+).
HCAD v0.33.0 — fillets on curved junctions
Fillets now work where a raised feature meets the part below it — the circular junction that previously could not be rounded at all.
Fillets
- Concave rims on curved walls round through the mesh-surgery engine, holding the ideal torus to 0.12% of the radius.
- A fillet running out onto a curved wall now sits flush in it, instead of leaving a square tab standing proud of the wall or stopping short in a straight chord.
- Its seam lines run wall to wall and stop there, rather than overshooting into space or ending short.
- Picking part of a curved rim takes its own corner and nothing else: exact to 0.5% of the analytic volume at any pick size, in about 25 ms where a 24-facet pick used to take a minute.
Fixes
- A circular cut no longer wedges the exact kernel. Any circular cut with Seamless off could freeze the application outright; a tolerance floor keeps truck's boolean away from tolerances its projection cannot converge to.
Windows installer attached. Requires the VC++ Redistributable, which the installer bundles.
Install
Windows: download hcad-v0.33.0-windows-x86_64.exe and run it.
Linux (AppImage): download hcad-v0.33.0-linux-x86_64.AppImage below, then:
chmod +x hcad-v0.33.0-linux-x86_64.AppImage
./hcad-v0.33.0-linux-x86_64.AppImageSelf-contained — no install needed. Requires a working Vulkan driver and xdg-desktop-portal (standard on modern desktops). Built for x86_64, glibc 2.39+ (Ubuntu 24.04+ / Fedora 40+ etc.).
Changes since v0.25.0 (the previous GitHub build)
HCAD ships nightly-ish builds on the dev server; these versions landed between GitHub releases. Notes below, download/install boilerplate trimmed.
v0.32.1 — Convex rims on curved walls get the good fillet engine
Fillets on curved walls.
- A rim on a cylinder, cone or any tessellated curved wall now goes through the mesh-surgery fillet instead of being refused. Measured on a 32-gon cylinder's top rim at radii from 0.2 to 3.5: the ideal torus held to 0.12% of r, the exact removed volume to 0.1%, and no sharp edges added — smoother than the CSG round it was previously forced onto.
- A finely tessellated arc is no longer mistaken for a straight run. It used to be split into a few long straight runs and filleted with one crisp cylinder each — faceted where it should curve, and non-manifold where the mismatched cylinders met. The finer the tessellation, the more reliably it broke.
Known limitation. Filleting the circular junction where a raised feature meets the part below it still does not work. That rim is concave and curved, and the surgery gets the sign of the fillet wrong there — it takes material out of a corner that should be filled — so it is guarded off rather than producing a wrong body. The CSG path cannot do a rim mixing arcs with sharp corners either. Straight edges at such a junction fillet correctly, as before.
v0.32.0 — Angle dimensions hold the wedge you place them in
Angle dimensions.
- Two crossing lines make four angles, and which one you meant is now said by where you place the label — drop it in the 30° corner and you get 30°, drop it next door and you get 150°.
- Arc, arrowheads and extension lines drawn like the linear dimensions: heads tangent to the arc, turning inward when the wedge is too narrow to hold them.
- The preview draws the real arc across the wedge the cursor is in, with a live value.
Fixes
- The arc could contradict its own number. It recomputed its own rays instead of reading the point order the constraint is written in, so it always drew the smaller wedge whatever the constraint was holding.
- The preview read 90° for every crossing pair, whatever the actual angle.
- Retyping an angle swung the wrong line: it held whichever line came first in the constraint rather than whichever was more constrained, so a line already held Vertical got dragged off vertical and the sketch went over-defined. It now weighs how constrained each line already is.
- Dimension arrowheads were invisible until the camera was moved — their scale came from a field the sketch interaction system writes, and that system stands down while the Modify box has the pointer.
v0.31.0 — Dimension between two lines, and between two circles
Pair dimensions, Smart-Dimension style. Click one entity, click another, click to place.
- Two parallel lines → the perpendicular distance between them. Resize one and the other keeps its gap. Crossing lines still give the angle.
- Two circles → the gap between their rims, drawn between the rims and slid along the pair to wherever you put it. Concentric circles are measured all the way round, so you choose which side the dimension sits on.
- One circle → its diameter, now placed by a second click like every other dimension.
Fixes
- A line-to-line distance is drawn between the two lines instead of as a leader from whichever endpoint happened to be stored, which sent it off to a far corner.
- Dimensioning two concentric circles reported over-defined: it was measuring centre to centre, which is zero for a concentric pair and cannot change.
- The live value read-out no longer swallows the click that places the dimension — you had to swing the cursor wide of it to land one.
v0.30.1 — Polygon rim fillets select the whole rim
Fixed: filleting a polygon extrusion selected only part of the rim.
Two independent bugs in edge selection:
- The tangent walk's continuation threshold was cos(60°) exactly — a regular hexagon's corner angle — so whether it turned each corner was decided by floating-point noise. A hexagon drawn square to the axes chained all six rim edges; the same hexagon rotated a few degrees chained three or four.
- When the walk stopped, the loop snap searched the whole body for the cycle with the fewest edges. On a prism that is the four-edge side face next to the click, shorter than any cap with more than four sides — so a pentagon rim selected four edges, never five, at every rotation.
The loop snap now searches one plane at a time (a face perimeter is coplanar by definition, which is what separates the cap from the side face) and keeps the largest loop found.
Pentagon 4 → 5, hexagon 4-or-6-depending-on-rotation → 6 always, octagon unchanged at 8.
v0.30.0 — Dimensions land where you place them
Dimension tool, SolidWorks-style
- Click to place. Pick the geometry, the dimension follows the cursor, a second click sets it — exactly where you click, including right on the edge. No computed offset to drag off afterwards.
- The preview is visible. It draws in the placement orange with a leader to the cursor and a live value, so hugging the edge reads clearly instead of vanishing into the sketch line.
- Drag direction chooses what is measured. Square off the line for its true length, below it for the horizontal span, out to the side for the vertical one.
Drafting styling
- Filled arrowheads at ~11 px, fixed on screen at any zoom, turning outward only on spans genuinely too short to hold them.
- Witness lines running from each end of the geometry back out to the dimension line, standing off it and overshooting by a hair.
- The value centred on the dimension line over a chip that masks it, so the line reads as broken around the number.
Fixes
- A dimension hugging a horizontal edge read 0 and placing it raised a false over-defined error — the axis rule picked the projection with no span.
- Dimensions no longer stand off the geometry by an amount nobody asked for.
v0.29.0 — saving no longer throws away an open sketch
Saving no longer throws away an open sketch
Update if you use nothing else from this release.
Save wrote the document only — and a sketch lives in the session until it's committed. So drawing a box, dimensioning it, and pressing Save wrote a file containing nothing but the three datum planes, with a cheerful "Saved" toast and no warning. The reported baddimension.hcad is 914 bytes of exactly that: three planes, no lines, no dimension, saved while all of it was on screen.
That's the worst class of bug this program can have, and it has been there the whole time. Save and Save As now commit the open sketch first and write on the next frame. It's a one-shot, so a sketch that won't commit lets the save go ahead rather than trapping it.
Dimensioning a box no longer over-defines it
tie_opposite_side — added in v0.25.0 so the far side follows the near one — was adding an Equal between opposite sides of a rectangle whose four sides already carry horizontal/vertical relations and whose corners are shared. Those sides are equal by construction, so the Equal is redundant, and the solver reports a redundant relation as "over defined — conflicting relations". It fired on nearly every box.
It now checks first: same axis on both sides means they're already equal, so nothing is added. Hand-drawn quads missing those relations still get the tie.
Both bugs were found from a saved file rather than by reading code — and the second only became findable once the first was fixed, because until then the file contained nothing to look at.
Centred squares
- A Center Square (construction) tool: a square layout guide sized from its centre, all construction geometry.
- Centre points now bind to whatever they're dropped on — an existing point, a circle or arc centre, a body corner, or an edge — instead of floating free on top of it. That was why centres drifted when a square was resized.
- Both diagonals run through the centre, so resizing grows the shape about it rather than sliding it.
- Dimension anchoring became a preference rather than a demand to suit: a shape that's already held doesn't need an extra pin, and pinning one anyway silently refused the dimension.
Not in this release
The SolidWorks-style dimension rework (click-t...
HCAD v0.25.0 — snap helpers, assembly sections, dimensions that hold
Three things, all about geometry staying where you put it.
Snap helpers for slots and polygons
Lines already pinned their endpoints onto body features, and that lock is what stops the small ledges: an unpinned point keeps a degree of freedom, so a later solve slides it a few microns off the edge it was snapped to and the extruded wall misses the one below it. Slots used the unpinned path; polygons never welded at all.
- Slots pin their end centres (and an arc slot's bend point) like a line's endpoints.
- Polygons pin their centre onto a hole or face centre, and any vertex onto a body corner. A polygon vertex can now snap to body features at all, which it previously could not.
The lock takes a deliberate aim — a quarter of the snap radius, the same tolerance lines use. The full radius grows with zoom, and using it here is what used to yank a polygon vertex across the screen to a far target. A point merely nearby stays free, and so does anything drawn in open space: pinning points you never aimed would quietly make the sketch undraggable.
Section views in assembly mode
The section state was already there; nothing applied it. Components share one cached mesh per part, but a single world plane meets two instances of that part differently — so the cut has to be per instance, or the second copy comes out cut in the wrong place and any fit you read off it is a lie.
Each component's mesh is now cut in its own frame, by carrying the plane into it rather than the mesh into the world. Cuts follow explode, component edges are filtered to the kept half so they do not hang in the air past the plane, and a part lying wholly past it is hidden rather than drawn uncut.
Dimensions that hold their anchor
A plain solve spread the correction over both endpoints, so a 20 mm side set to 30 landed at -5 and 25: right size, right shape, slid sideways under the rest of the sketch.
The anchor now goes to the end the body is holding — a corner welded to a body vertex, or one snapped onto a body edge carrying a PointOnLine. Dimensioning a side moves the free end and leaves the attached one on the geometry it was drawn against. Without that, a box sitting on an edge had its bottom corner pushed off and sheared into a trapezoid. With neither end attached it holds the end you picked first.
Dimensioning a side of a closed four-sided loop also ties the opposite side to it with an Equal relation. The far side stays undefined but always matches, so the box keeps its shape without a second dimension over-defining it.
And a silent failure alongside: a side with both ends locked to the body used to swallow its dimension without a word. It now reports what was asked against what the sketch could actually reach.
Verification
268 tests. Each fix has a test confirmed to fail on the old code: the slot and polygon locks, the box on a body edge losing its bottom corner, the square sliding sideways. The assembly section is checked by shifting an instance along the plane normal and confirming it cuts where it sits.
Known issue
A box carrying Horizontal/Vertical relations whose corners are pinned to a body edge that is not parallel to the sketch axes can still report "Over defined — conflicting relations". The anchoring change stops that showing up as a sheared box, but the underlying conflict is untouched.
Install
Windows: download hcad-v0.25.0-windows-x86_64.exe and run it.
Linux (AppImage): download hcad-v0.25.0-linux-x86_64.AppImage below, then:
chmod +x hcad-v0.25.0-linux-x86_64.AppImage
./hcad-v0.25.0-linux-x86_64.AppImageSelf-contained — no install needed. Requires a working Vulkan driver and xdg-desktop-portal (standard on modern desktops). Built for x86_64, glibc 2.39+ (Ubuntu 24.04+ / Fedora 40+ etc.).
HCAD v0.21.0
Toolbar icons
43 vector CAD icons across every sketch tool, feature command and dropdown variant. Drawn with vector primitives rather than bitmaps, so they follow the theme, stay crisp at any DPI, and add no binary assets. Dashed always means construction geometry or material being removed, so Boss/Cut and Loft/LoftCut read as pairs.
Shell — fixed and reworked
Shell appeared completely dead on a basic box. The geometry was always correct; the face picking sat behind the egui pointer-block, so clicks on the body never registered. Every shell came out sealed — and a sealed hollow is indistinguishable from an untouched solid from outside.
- Face picks register again (the same carve-out fillet/chamfer already had).
- Quick face buttons: Front/Top/Right, Back/Bottom/Left, named to match the view cube. An enclosure is now: set thickness, click Top, OK.
- Whole face shades orange for faces that will be opened; the selected face shades yellow.
- Select + checkbox: clicking selects a face, and an "Open this face" checkbox acts on it.
- Live see-through preview of the actual shelled result, so the cavity and wall thickness are visible before committing.
- Opened faces are listed and individually removable; a sealed result now says so instead of looking like a no-op.
Bug pass
From a review across the whole codebase:
- Exact-kernel cut direction used the whole-body centroid, so a tall boss elsewhere flipped a top-face pocket to face open air and removed nothing. Now probes locally, as the mesh path already did.
- Thin-sheet cuts vanished: the void-prune probes started below the material thickness, so cuts on sub-millimetre sheets were silently dropped.
- Prism winding: side walls used raw loop winding while the caps were normalised, pushing tools onto the lossy boolean path.
- Crash fixes (these paths are outside the regen panic guard): a stale dimension pick after a sketch undo, a ragged imported index buffer, and NaN-unsafe sorts.
- Robustness: the CSG fallback is depth-capped against stack overflow, and the bevel watertight check no longer passes an open mesh.
Network shares
File ▸ Open by Path… / Save to Path… accept a full UNC path (\\server\share\...), which the native OS dialog refuses. Missing folders are created on save, and real OS errors are surfaced.
Install
Windows: download hcad-v0.21.0-windows-x86_64.exe and run it.
Linux (AppImage): download hcad-v0.21.0-linux-x86_64.AppImage below, then:
chmod +x hcad-v0.21.0-linux-x86_64.AppImage
./hcad-v0.21.0-linux-x86_64.AppImageSelf-contained — no install needed. Requires a working Vulkan driver and xdg-desktop-portal (standard on modern desktops). Built for x86_64, glibc 2.39+ (Ubuntu 24.04+ / Fedora 40+ etc.).
66 tests green across the workspace.
HCAD v0.20.0 — Scan import, sketch dimensioning, robustness
STL import & reverse engineering
- Import an STL as an editable body or a reference scan; 3-point alignment, automatic mesh repair, measure directly on scans.
- Trace Section: fitted section curves from a scan; Solidify a scan shell into a solid (voxel remesh, exact-distance SDF band).
- Fit primitives from a scan region: click a face to extract a datum plane / axis.
- New reference planes: gizmo-placed Free Plane and 3-Point Plane.
Sketching & dimensioning
- Hover a round body edge while sketching to reveal + snap to its centre (sticky), so new features stay concentric with existing bores.
- Edge-to-edge dimension: click an existing bore's edge, then a sketch circle - the rim-to-rim distance drives the circle's size (spec a wall thickness off a hole with no radius math).
- Deleting an extrude/cut/revolve now keeps its sketch in the tree, so you can re-cut without redrawing.
Assembly
- Mate against picked edges (circular rims / straight edges) as axis references; orange hover/pick highlights + unsatisfied-mate diagnostics.
- Create a new part in-context inside an assembly, sketching on and snapping to the ghosted neighbours.
Robustness (the excut.hcad saga)
- Cuts on crossing-heavy sketches now remove exactly the picked region (interior-point hole containment; contour picks re-resolved by sample point, not index).
- Fillet no longer leaves a square flap at the corners of a face with holes.
- Cut circles snapped onto a hole rim no longer shed sliver walls; leftover floating seam edges after a cut are trimmed to their supported runs.
- Region fill can't spill past its boundary; responsiveness: background mesh rebuilds + debounced PM drags.
Install
Windows: hcad-v0.20.0-windows-x86_64.exe (bundles the VC++ runtime).
Linux (AppImage): Download hcad-v0.20.0-linux-x86_64.AppImage below, then:
chmod +x hcad-v0.20.0-linux-x86_64.AppImage
./hcad-v0.20.0-linux-x86_64.AppImageSelf-contained — no install needed. Requires a working Vulkan driver and xdg-desktop-portal (standard on modern desktops). Built for x86_64, glibc 2.39+ (Ubuntu 24.04+ / Fedora 40+ etc.).