News for hackers. Stuff that matters.
Re:Open source CAD in the browser (Solvespace) by MrDOS on Tuesday March 31, 2026 @10:25AM (#47587868)
SolveSpace is a wonderfully different take on parametric CAD, but development has really slowed, and it seems fundamentally incapable of some pretty rudimentary features (like chamfers[0]). Dune 3D[1] seems like a pretty effective spiritual successor.

0: https://github.com/solvespace/solvespace/issues/149

1: https://dune3d.org/

Re:Open source CAD in the browser (Solvespace) by phkahler on Tuesday March 31, 2026 @11:22AM (#47588690)
Chamfers and Fillets are my next major undertaking. Don't expect them any time soon, but they've moved to the top of my list. They are extremely difficult to do in the general case - so we will not cover all cases. Several years ago I tried an experiment:

https://github.com/solvespace/solvespace/issues/453#issuecom...

That could only do the top or bottom of a straight extrusion. This time will be a more general than that. Not looking forward to doing corners where 3 fillets meet ;-)

Re:Open source CAD in the browser (Solvespace) by MrDOS on Tuesday March 31, 2026 @12:29PM (#47589861)
Oh, sorry, I didn't recognize that this had been posted by a SolveSpace maintainer! Rad. I am glad to hear the project is still moving.

I also appreciate the difficulty of generalizing chamfers/fillets. There's a reason that basically all FOSS CAD packages have struggled with it.

Re:Open source CAD in the browser (Solvespace) by echelon on Tuesday March 31, 2026 @01:31PM (#47590779)
> difficulty of generalizing chamfers/fillets. There's a reason that basically all FOSS CAD packages have struggled with it.

Could you decompile CAD, run it through an LLM, and call it a day?

Re:Open source CAD in the browser (Solvespace) by yonatan8070 on Tuesday March 31, 2026 @04:28PM (#47593029)
Aren't there licesing issues with porting a proprietary implementation into an open-source one that could open up the project to legal issues with the proprietary vendor?
Re:Open source CAD in the browser (Solvespace) by WillAdams on Wednesday April 01, 2026 @08:38AM (#47600035)
The Plasticity guy seems to be threading that needle.
Re:Open source CAD in the browser (Solvespace) by voakbasda on Wednesday April 01, 2026 @11:01AM (#47601850)
That might seem to be the case, right up until he gets taken to court over it.

Never presume that a thing is legal (or will not later be punished) on the basis that someone is already doing it.

Re:Open source CAD in the browser (Solvespace) by echelon on Wednesday April 01, 2026 @12:47PM (#47603326)
You can't stop it. This is just progress.

All software that isn't delivered over client/server to thin clients is now subject to being trivially cloned.

Re:Open source CAD in the browser (Solvespace) by voakbasda on Thursday April 02, 2026 @05:24AM (#47611999)
That was never in question, even before AI. It just took more monkeys at typewriters.
Re:Open source CAD in the browser (Solvespace) by mordae on Tuesday March 31, 2026 @06:14PM (#47594189)
Hi! Thanks for your hard work! I just want you to know it's definitely worth it!

I am using SolveSpace for my 3D prints because I just don't have time to learn anything else. With SolveSpace I've been productive in like 2 hours after launching it the first time.

So far you've saved me like $500 in things I've printed instead of bought. Just last week I've printed nasal manifold for my DIY sleep monitoring setup. Replacement specs legs a month ago.

If you really make fillets and chamfers a reality, please don't forget to open donations.

Re:Open source CAD in the browser (Solvespace) by huslage on Tuesday March 31, 2026 @10:13PM (#47595963)
DIY sleep monitoring? Tell us more!
Re:Open source CAD in the browser (Solvespace) by schiffern on Wednesday April 01, 2026 @02:43AM (#47597660)

  >corners where 3 fillets meet
I would imagine there are a few different possible options (preferably a settable parameter):

* Intersection. Conceptually the simplest, the chamfers would just be joined by the solid addition of all three fillet surfaces, creating three new sharp corner edges that meet at a single vertex.

* Rolling sphere. Imagine an idealized spherical "thumb" smoothing out caulk. The middle would be joined by a new spherical concave surface, tangent to all three fillets. Also generalizable to convex fillet intersections, smoothing out sharp corners.

* NURBS, with adjustable parameters or even control points, eg when you want a little more "meat" in a corners for strength of a part.

* Flat corners, for chamfers (what do do when N>3 corners meet?)

* What else?

Ideally you might be able set the corner type separately for inside vs outside corners, or on a per-vertex or (in the most granular case) per-incoming-edge basis? Is that crazy?

How do saddle corners[0] behave? Does it just "work out" and (by some miracle) uniquely resolve for all permutations and corner types?

It certainly gets complex quickly!

[0] center, where the cubes all intersect https://entitleblogdotorg3.files.wordpress.com/2015/02/esche...

Re:Open source CAD in the browser (Solvespace) by throwup238 on Wednesday April 01, 2026 @09:02AM (#47600284)
That’s not even the complex part. Most of what you describe is a user interface issue, not a geometric kernel issue.

The hard part of 3 corners fillets is the tolerances. Each of those fillet operations has its own compounding float errors and when they meet, the intersection is so messy that they often do not intersect at all. This breaks almost every downstream algorithm because they depend on point classification to determine whether an arbitrary point is inside the manifold, outside, or sitting on an edge or vertex.

And that description of the problem is just scratching the surface. Three corner filets create a singularity in UV space at the common vertex so even when you find a solution to the tolerance problem you still have to deal with the math breaking down and a combinatorial explosion of special cases, almost each of which has to be experimentally derived.

Re:Open source CAD in the browser (Solvespace) by hnben on Wednesday April 01, 2026 @11:34AM (#47602294)
when i did openscad, i just did a minowski hull with a 4sided bipyramid (aka rotated cube) to get chamfers for my cubes.

bonus: minowski hull with a round pyramid adds chamfers in the vertical and fillets in the horizontal, which is what i want for 3d printing most of the time. additionally it closes small overhangs, and it makes fonts smoother (i.e. fonts don't extrude in a 90degree angle, and get 45degree instead, and print better on vertical faces)

disclaimer: I havent used openscad for about a year and my memory may be fuzzy

edit: i am not saying minowsky hull would directly solve your problem, but maybe the algorithm gives you inspiration to solve your numerical issues

Re:Open source CAD in the browser (Solvespace) by throwup238 on Wednesday April 01, 2026 @08:50PM (#47608676)
OpenSCAD is mesh based so it's not even in the same universe as a proper brep geometric kernel. Everything is easier when you give up on the math entirely, but that’s not good enough for real world manufacturing and simulation.

All of the major commercial geometric kernels have been working on these problems for thirty years and I’m sorry, but your five minutes experience with a glorified tessellator isn’t going to make progress on long standing computational geometry problems.

Re:Open source CAD in the browser (Solvespace) by schiffern on Sunday April 05, 2026 @04:37AM (#47647375)

  >that’s not good enough for real world manufacturing and simulation
Dumb question: why not?? It's working for that guy and his 3D printer apparently, which is "real world" (though one could certainly argue it's not proper "manufacturing").

In theory pi has infinite places, sure . In real-world practice (vs math-lympics) you never need more than 100 digits, and indeed you rarely ever actually need more than 5.

Why doesn't it work to "just" throw more bit-width and more polygons at it? Who out there actually needs more than that (vs who just thinks they do)?

Re:Open source CAD in the browser (Solvespace) by throwup238 on Sunday April 05, 2026 @07:10AM (#47648207)
The answer boils down to “floating point math” and “discontinuities”.

> indeed you rarely ever actually need more than 5.

That’s not how math works. With every operation the precision falls, and with floats the errors accumulate. What was five digits quickly becomes 3 digits and now you’ve got three surfaces that are supposed to, but don’t technically intersect because their compounding errors don’t overlap even though the equations that describe them are analytically exact. Modern geometric kernels have 3 to 7 tolerance expansion steps that basically brute force this issue when push comes to shove.

Once you have these discontinuities, a lot of critical math like finite element modeling completely breaks down. The math fundamentally depends on continuous functions. Like I mentioned above, three corner filets create a singularity in parametric space by default, so even the core algorithms that kernels depend on to evaluate surfaces break on a regular basis on basic every-day operations (like a box with smoothed edges - aka almost every enclosure in existence)

> Who out there actually needs more than that (vs who just thinks they do)?

I can’t stress this enough: almost everyone. CAD isn’t one of those fields where you can half ass it. Even the simplest operations are bound to create pathological and degenerate cases that have to be handled, otherwise you have a pile of useless garbage instead of a 3d model.

Slicers deal with meshes, like video game renderers, not boundary representations like CAD kernels. There is effectively zero overlap. Even just tessellation, the step that converts brep to mesh, is significantly harder than anything 3d printing software has to do.

Re:Open source CAD in the browser (Solvespace) by ruevs on Wednesday April 01, 2026 @10:53AM (#47601764)
Join SolveSpace development? ;-)
Re:Open source CAD in the browser (Solvespace) by schiffern on Wednesday April 01, 2026 @10:20AM (#47601322)
This is why geometric kernels are the gateway to madness. ;) Thanks for the clarification.
Re:Open source CAD in the browser (Solvespace) by faangguyindia on Tuesday March 31, 2026 @12:18PM (#47589683)
All we need is a genius, with unlimited claude and codex credit and he will replace Fusion 360 atleast in 3d printing and machining space

It's so sad most guys aren't comming together to build some great CAD engine which open source really needs!

Gimp is shame, photoshop is increasingly being lockdown and people who have smarts to fix that are doing nothing.

Re:Open source CAD in the browser (Solvespace) by ezst on Tuesday March 31, 2026 @12:33PM (#47589914)
That people on this forum convinced themselves that it's a reasonable take to vibe code a useful geometric kernel is profoundly depressing.
Re:Open source CAD in the browser (Solvespace) by progbits on Tuesday March 31, 2026 @03:10PM (#47592029)
Indeed. I would love for it to be true, but aside from opencascade^1 all the professional kernels are proprietary and not in the training set, so LLMs can't just regurgitate them.

^1: Which I really appreciate, but let's be real, it is far behind eg. parasolid.

Re:Open source CAD in the browser (Solvespace) by faangguyindia on Tuesday March 31, 2026 @12:51PM (#47590176)
Just wait for sometime, there will be one.

There are many geniuses on HN for tacking up challenge

Re:Open source CAD in the browser (Solvespace) by fainpul on Tuesday March 31, 2026 @01:06PM (#47590390)
So you think AI can do this – why exactly is a genius needed?
Re:Open source CAD in the browser (Solvespace) by faangguyindia on Tuesday March 31, 2026 @09:52PM (#47595810)
genius is needed in pilot seat to guide AI :)
Re:Open source CAD in the browser (Solvespace) by WillAdams on Wednesday April 01, 2026 @08:42AM (#47600067)
Vibe coding only seems to work, insofar as it does when the training data includes multiple exemplars of solutions to a given problem.

As noted elsethread, there's only one geometric kernel which is decently far along and opensource and it's over 1 million LOC --- I doubt it's being included in any training data, and I doubt that an LLM could regurgitate such a large project which would then compile w/o errors and then work as expected --- the number of tokens required to get such a project to an initial state is a marked hurdle as well.

Re:Open source CAD in the browser (Solvespace) by stackedinserter on Tuesday March 31, 2026 @01:17PM (#47590552)
Correct me if I'm wrong, kernel is already there, and it's decent enough. What's lacking is a good user interface to it.
Re:Open source CAD in the browser (Solvespace) by progbits on Tuesday March 31, 2026 @03:11PM (#47592050)
FreeCAD is perfectly good user interface for opencascade. The problem is that as your geometry gets more complicated you start running into the kernel limitations.
Re:Open source CAD in the browser (Solvespace) by julbaxter on Tuesday March 31, 2026 @10:34AM (#47587973)
Dune3D uses SolveSpace behind the scene.
Re:Open source CAD in the browser (Solvespace) by phkahler on Tuesday March 31, 2026 @11:22AM (#47588696)
Only for the constraint solver. Dune uses OCCT for the solid model.
Re:Open source CAD in the browser (Solvespace) by amelius on Tuesday March 31, 2026 @11:39AM (#47589009)
I'm curious why you didn't go with OCCT for Solvespace.
Re:Open source CAD in the browser (Solvespace) by phkahler on Tuesday March 31, 2026 @01:08PM (#47590414)
>> I'm curious why you didn't go with OCCT for Solvespace.

I didn't start Solvespace, but Jonathan was apparently in a DIY mode after developing his take on constraint-based sketching. It's also very easy to go from NURBS curves to NURBS surfaces, the challenge begins at boolean operations which continue to be a source of bugs for us. This is really the only option other than OCCT and the code is small and approachable so I try to make it better.

Re:Open source CAD in the browser (Solvespace) by amelius on Tuesday March 31, 2026 @01:15PM (#47590528)
Would it be worthwhile to consider switching to OCCT (or make it optional)? It would make certain things such as fillets/chamfers much easier, I suppose, and it would make those boolean operation bugs go away. And exporting to various formats would be easy.
Re:Open source CAD in the browser (Solvespace) by phkahler on Tuesday March 31, 2026 @01:31PM (#47590778)
>> Would it be worthwhile to consider switching to OCCT

It would, and it has been considered. The sketch elements in solvespace are significantly decoupled from the solid model. That means we could substitute (via wrapper maybe) an OCCT object instead of our SShell class. Then you'd have to change a set of solvespace curves to OCCT curves to make extrusions from them and such. But that would be most of the work.

We do tag all triangles in the mesh with a sketch entity handle for flat surfaces so you can constrain points to a face. I'm not sure how that would be handled. We will also be tagging edges of the solid with sketch entity handles in the future so we can do chamfers and fillets - say by selecting a line entity and applying a modifier to it which gets applied to the NURBS shell. I'm not sure how that would go with OCCT.

But yes I've given a bit of thought to it ;-)

Re:Open source CAD in the browser (Solvespace) by amelius on Tuesday March 31, 2026 @03:56PM (#47592613)
Perhaps you could create both the shell and the OCCT object. Then when an edge is chamfered, you could look it up in the OCCT object (simply find all segments which are sufficiently close to the chamfered edge). And then call the OCCT chamfer function. Or something along those lines.
Re:Open source CAD in the browser (Solvespace) by jwesthues on Tuesday March 31, 2026 @04:34PM (#47593113)
Yeah. To quantify, OCCT is >1M lines of code, and SolveSpace's NURBS kernel is <10k. This general smallness is what subsequently made stuff like the browser target feasible, though it obviously comes with downsides too.

We'd welcome contributions, and it's much easier to contribute to the smaller codebase. I think there's potential for coding agents to accelerate this work since robust point-in-shell and shell-is-watertight tests are mostly sufficient to judge correctness, allowing the agent to iterate; loosely you could define your geometric operation as a function of whether a point should lie within the output region, then ask the agent to convert that to b-rep. I wouldn't currently expect useful progress without deep human effort and understanding though.

Re:Open source CAD in the browser (Solvespace) by phkahler on Tuesday March 31, 2026 @03:55PM (#47592591)
Oh, and the Blender CAD Sketcher add-on also uses our constraint solver.
Re:Open source CAD in the browser (Solvespace) by IshKebab on Tuesday March 31, 2026 @11:16AM (#47588603)
FreeCAD doesn't have the limitations of SolveSpace, and the UX is actually decent now. I moved to that.
Re:Open source CAD in the browser (Solvespace) by l-albertovich on Tuesday March 31, 2026 @11:36AM (#47588947)
I just tested it out of curiosity and found that viewport manipulation behaves in a very similar way to onshape which feels very natural to me.

I've been thinking about trying to implement this in freecad but I'm still exploring the idea.

Re:Open source CAD in the browser (Solvespace) by Karliss on Tuesday March 31, 2026 @02:06PM (#47591247)
There are more than dozen different viewport navigation manipulation modes, latest version added two more (Solidworks and Siemens NX). You can pick whichever behaves closest to the program you are most used to.
Re:Open source CAD in the browser (Solvespace) by l-albertovich on Friday April 03, 2026 @05:47PM (#47632756)
Yeah, I tried all of them with all the combinations of presets and orbit styles and the closest I could get was using tinkercad but couldn't match the orbit style correctly.
Re:Open source CAD in the browser (Solvespace) by jabl on Tuesday March 31, 2026 @12:48PM (#47590127)
Some years ago I tried to learn CAD by doing some FreeCAD tutorials, and failed. But I hear 1.0 was a big step forward, and the recently released 1.1 is also a big step, and it should be somewhat decent nowadays. Maybe I need to try again one day.
Re:Open source CAD in the browser (Solvespace) by IshKebab on Tuesday March 31, 2026 @04:31PM (#47593073)
Yeah it's vastly better in 1.0 than it used to be. I still think you might be a bit lost if you aren't familiar with parametric CAD, but it's no harder than Blender for example.
Re:Open source CAD in the browser (Solvespace) by jonpurdy on Tuesday March 31, 2026 @01:57PM (#47591142)
I’m looking for a recommendation to get beyond TinkerCAD (for 3d printing). I learned it in 2019 and came back in 2025 when I got my own printer. It is comfortable and fine for my purposes but lacks basic things like chamfer and fillets.

Anytime I try to jump into Fusion or FreeCAD I immediately hit a wall (like trying pirated Maya when I was a kid).

Re:Open source CAD in the browser (Solvespace) by IshKebab on Tuesday March 31, 2026 @04:30PM (#47593053)
I would recommend pirating SOLIDWORKS and learning with that. It has the easiest UX of the parametric CAD modellers, and once you know the general sketch-extrude methodology you will find the others a lot easier.

Actually I think they have a hobbyist subscription which isn't totally extortionate now if you want to stay legal. Maybe get it for a year.

Re:Open source CAD in the browser (Solvespace) by WillAdams on Tuesday March 31, 2026 @08:18PM (#47595220)
The new 1.1 update seems markedly easier to use.

There's also a soft-fork which some folks are funding:

https://www.astocad.com/

Re:Open source CAD in the browser (Solvespace) by bruckie on Tuesday March 31, 2026 @08:48PM (#47595416)
OnShape is pretty approachable, and has lots of good tutorial videos. They offer free accounts for non-commercial use with the caveat that all of your documents must be public.

If you haven't tried FreeCAD recently, it's gotten a lot better in the past couple of years. It seems to have hit escape velocity, so to speak, and is improving rapidly in a way it hadn't for a long time.

Re:Open source CAD in the browser (Solvespace) by jijijijij on Wednesday April 01, 2026 @09:20AM (#47600487)
> They offer free accounts for non-commercial use with the caveat that all of your documents must be public.

Major caveat! Also online access required.

And if you decide to upgrade, the next tier is 1,410€ per year.

For that amount of cash, FreeCAD can abuse and torture me quite a bit. Lol.

Also at the rate FreeCAD is developing and improving now, if more people would drop just 1k€/ donations into FreeCAD/OCCT, chances are your pains will ease rather sooner than later.

Re:Open source CAD in the browser (Solvespace) by Oxodao on Thursday April 02, 2026 @05:52AM (#47612196)
I'm not spending weeks to learn a proprietary, online-only software that will lock me out as soon as they need more money. Been burnt before on those kind of stuff
Re:Open source CAD in the browser (Solvespace) by vonnieda on Tuesday March 31, 2026 @10:26PM (#47596045)
Try FreeCAD one more time, if you haven't tried 1.0+, and it might stick. I've finally, in the past 6 months moved all my work to FreeCAD and KiCad after trying both many times over the past decades.

I highly recommend watching one of MangoJelly's beginner videos for FreeCAD, even if you have CAD experience. It made it very clear how to adapt my Fusion360 skills.

Re:Open source CAD in the browser (Solvespace) by poulpy123 on Wednesday April 01, 2026 @07:11AM (#47599323)
You may try onshape that is supposed to have a better accessibility than fusion 360, but unfortunately it doesn't seem that a CAD software with a complexity intermediate between tinkerCAD and FreeCAD an dthe pro CAD software exists
Re:Open source CAD in the browser (Solvespace) by brcmthrowaway on Tuesday March 31, 2026 @01:23PM (#47590642)
How does Dune3D compare to FreeCAD?
Re:Open source CAD in the browser (Solvespace) by phkahler on Tuesday March 31, 2026 @03:00PM (#47591907)
>> How does Dune3D compare to FreeCAD?

Dune3D is more like Solvespace with a few improvements and bug fixes vs being anywhere near FreeCAD in terms of capability. Improvements include using STEP files in assemblies and having some ability to make Fillets or Chamfers. Bugs fixes would be due to using OCCT for NURBS surfaces - solvespace frequently fails with NURBS boolean operations.

As for overall capability, FreeCAD does everything these others do but also supports lofting and other modeling options, BIM for architecture, I think it does pre- and post- processing for FEA, and maybe some other "big tool" things.

Re:Open source CAD in the browser (Solvespace) by mordae on Tuesday March 31, 2026 @06:20PM (#47594249)
It takes 10× as long to sketch in it compared to SolveSpace. At least for me.