3 ms·
> most things you’d need Say you wanted to write a CAD app like https://www.onshape.com https://www.onshape.com. There’s no way you could do it Tcl/Tk, is ther
by criddell 2y ago
> most things you’d need
Say you wanted to write a CAD app like https://www.onshape.com https://www.onshape.com. There’s no way you could do it Tcl/Tk, is there?
- deleted 2y ago[deleted]
- oldlaptop 2y agoMost of what I'd call the UI - all the toolbars and pseudo-floating-windows - is basic bread-and-butter Tk stuff. The 3D context and CAD kernel would be the tricky bits. There are extensions floating around to work with OpenGL (or whatever), but I don't see doing the heavy CAD-kernel lifting in Tcl - that would likely have to be in C, or whatever. (Just as it presumably is for Onshape.)
- deleted 2y ago[deleted]
- zvr 2y agoYou are correct. Having written such a thing, you do all your basic UI in Tcl/Tk and have a custom widget doing all OpenGL/whatever rendering. The rest of the code treats it as a canvas-like widget.
- WillAdams 2y agoIt's 2D only and Mac OS-specific, but there is: https://github.com/revarbat/TkCAD https://github.com/revarbat/TkCAD
- criddell 2y agoThat's impressive!