4 ms·
CAD math is hard and severely limits contributors. Yes. Autodesk used to have a staff geometer, and probably still does. Constructive solid geometry is hard, b
by Animats 5y ago
CAD math is hard and severely limits contributors.
Yes. Autodesk used to have a staff geometer, and probably still does. Constructive solid geometry is hard, because you can use complex forms to cut into complex forms, and have to represent the result.
A typical exercise in a good CSG program is to model a bolt. You start with a cylinder. Then you draw and dimension a thread cross section. Then you extrude the thread cross section along a spiral, subtracting that from the cylinder, to cut the threads. Then, at the end of the bolt, you cut a chamfer by extruding a triangle around a circle and subtracting that from the bolt. The CAD program must correctly and precisely describe what happens to the thread as it is cut by the chamfer. You can zoom way in and take a close look. You might have a design constraint that the chamfered thread can never be thinner than some specified width, to avoid bits of metal flaking off as the bolt is tightened.
Most of the free CAD programs bail before they deal with problems that hard.
- nickpinkston 5y agoAnd the BREP math is even worse... And the implementations are pretty dirty too Also, good to see you John :-)
- regularfry 5y agoI'm not certain about that very last constraint (the chamfered thread not being thinner than X) but other than that, precisely what you describe is a workflow I've been following for the past couple of months in FreeCAD: not for metal threads, for plastic, printed ones, but the workflow is the same. They added helical cuts and additions in the most recent version, but even before that you could get the same effect with a helical path (so a few more steps for the same result, essentially).
- Animats 5y agoOh, good, FreeCAD is catching up. It's been a few years since I tried it.
- regularfry 5y agoYeah. 0.19.2 is good, at least for the stuff I need; 0.20 is shaping up to be full of good stuff too (and hopefully won't take as long as the 0.18->0.19 cycle did). On-topic, though, if you're doing threads and gears, it gets slow quickly. It doesn't take very much for me to start needing to switch parts of the design off for the UI to stay usable because recalculations kick in that I know shouldn't be needed, but the dependency tree isn't detailed enough to filter out.
- dekhn 5y agoit's been able to do everything you just described for at least 5 years (with the exception of that last constraint, I think).
- aj7 5y agoNot only that, but that is the workflow if you were making a custom bolt on the lathe. Machining experience is invaluable when designing mechanical parts.
- triggercut 5y ago>>Then you extrude the thread cross section along a spiral, subtracting that from the cylinder, to cut the threads. Whoa! Whoa! Whoa! No Helix geometry in this office, are you trying to get us all killed?!