News for hackers. Stuff that matters.
Re:CADmium: A Local-First CAD Program Built for the Browser by phkahler on Tuesday May 21, 2024 @02:20PM (#40431912)
For Solvespace I was looking at using curve offsetting to determine where the fillet touches the surface. This would not produce a "rolling ball" fillet in more complex cases, but should be fine for simpler extrusions. It turns out generating an offset curve is another somewhat hard problem in itself.
Re:CADmium: A Local-First CAD Program Built for the Browser by samwillis on Tuesday May 21, 2024 @02:31PM (#40432053)
Yep, it would be difficult to maintain a consistent radius with that method.

My assumption (I've not looked) is that you could offset the surfaces from the two sides (say A and B), and then calculate the intersection of an offset of A with the original B. Then do the opposite for the other side. I think that will give you two edges that will produce a consistent radius.

Offsetting surfaced and calculating intersections aren't exactly easy problems to solve on their own. Fillets are hard!

(Solvespace is awesome BTW! If I had the time (or the expertise) it also makes a brilliant foundation for all this)

Re:CADmium: A Local-First CAD Program Built for the Browser by phkahler on Tuesday May 21, 2024 @02:41PM (#40432172)
>> Offsetting surfaced and calculating intersections aren't exactly easy problems to solve on their own. Fillets are hard!

Yeah, offsetting surfaces is harder than curves ;-) This was my early stab at doing chamfers on extrusions: https://github.com/solvespace/solvespace/issues/453#issuecom...

I know how to do it better now, but ugh... not enough time.