From: Revar D. <rev...@gm...> - 2010-11-22 19:47:14
|
The mlcnc_critcl extension derives from the TCL code in the tksrc/lib/mlcnc/ directory. There's more geometry code in tksrc/lib/geometry.tcl and tksrc/lib/matrixmath.tcl . I profiled what the mlcnc TCL code was being slow at (using tksrc/lib/profile.tcl) and wrote C-based replacements for those routines. This vastly sped up the inset and boolean geometry operations. My original work on mlcnc predated the inclusion of the math::geometry library, as I recall, but I changed some code to take advantage of it, since. The mlcnc library -- Mid-Level CNC -- was originally created to make Tcl scripts that described complex tool paths, and includes operations like inset/outset that are much higher level than math::geometry supports. I later grafted the library into TkCAD, so I could lay out things visually. I made enhimgcopy by taking the code at http://wiki.tcl.tk/11924 and making it compilable using critcl, more or less. To be honest, when I can use tkpath, it makes enhimgcopy more or less irrelevant for the CAD's purposes. I am the complete and total fail at getting TCL/Tk 8.6 to compile embedded under OS X, recently, and haven't been able to compile extensions for about a year now. I suspect I've been Doing It Wrong in how I have my build environment set up. Kind of frustrating. This is part of why I use critcl in my extensions... Because TEA, ironically enough, intimidates me. - Revar On Nov 22, 2010, at 10:35 AM, Andreas Kupries wrote: > Having looked at your README.txt I am also interested in getting links for the > C extensions you mention, especially > > fontdata Gets font glyph curves. (Critcl, Carbon only, simple) > mlcnc_critcl Speeds up geometry calculations. (Critcl, portable) > enhimgcopy Allows scaling and rotation of images. (Critcl, portable) > > The mlcnc I would like to compare against math::geometry in tcllib (1) and the > enhimgcopy against the CRIMP (2). > > > Aaah, never mind ... Looking deeper into the directory structure I see that > these are all part of the TkCAD sources, not separate. > > Time to clown^Wclone around... > > > (1) http://sourceforge.net/projects/tcllib/ > http://docs.activestate.com/activetcl/8.5/tcllib/math/geometry.html > > (2) http://chiselapp.com/user/andreas_kupries/repository/crimp/home > > > >> Basically I'm not too worried what folks want to do with the code, as long > as it's useful to them and they can modify it as needed. > > > -- > Andreas Kupries > Senior Tcl Developer > ActiveState, The Dynamic Language Experts > > P: 778.786.1122 > F: 778.786.1133 > and...@ac... > http://www.activestate.com > Get insights on Open Source and Dynamic Languages at www.activestate.com/blog > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > Tcl-mac mailing list > tc...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-mac |