Viesturs Lācis wrote: > I would like to ask, if anyone can suggest me a way to generate a > g-code for a single-time situation: > The part consists of 3 pieces of tubes - 2 of them need to be welded > to main piece. > What I need is to get a g-code that describes the intersection lines > of each 2 tube pieces. > I have SolidEdge model, IGES, STEP and STL models for the whole part. > Geez, I wish I could just give you the code, but I'm under a non-disclosure agreement, and the code isn't mine. But, there is a fairly well-known math formula for the intersection of two cylinders. In the particular case I've seen, it was a machine with oner linear and one rotary axis, and the code contained a SQRT and a SIN function plus the square (**) operator. The entire, totally generalized G-code is only 12 lines, and will follow the curve when the size of the two pipes are entered. It might take one more line of code to do it with an X-Y-Z machine. It was all done with the math functions available in EMC2's G-code interpreter.
Jon ------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
