Andy;
> You would have to raise an error in cases where the three points lie on a > line. > > G16 appears to be available for setting this mode, and even makes sense as > the "zeroth member" of the set. 3 vertices doth make a triangle; should two of those vertices be equal, one hath a degenerate triangle (i.e., a line), should all 3 vertices be equal, one hath a really degenerate triangle, called a point. My 3D rendering code uses Quaternion SLERP to go from one point to another. (Wikipedia is, of course helpful here) If you want to see the code, one can see it; http://freewrl.sf.net, or, sneaking around the back http://freewrl.cvs.sourceforge.net is the full code base. For Android devices, I'm adding a "STL" front end to it, and planning to add many more neat features, but I'm charging a minimal amount for it. (no app name here, but if you look for it on the google app store, my name is a clue) I mention this because, yes, getting a normal from 3 vertices can be slightly problematic, but that's a simple check. Also, SLERP code is available, written in "C", as well as all kinds of functions, etc. I'm still learning GCode, so G16 is still a blur to me. Regards; John Alexander Stewart. ------------------------------------------------------------------------------ LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/logmein12331_d2d _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
