#emc-devel | Logs for 2010-04-10

Back
[07:00:11] <ries_> ries_ is now known as ries
[08:33:50] <awallin> I have been working on an octree-based cutting simulation
[08:34:08] <awallin> There is a video and a screenshot here: http://www.anderswallin.net/2010/04/cutting-down-the-octree/
[08:35:03] <awallin> How easy is it to hook into the EMC2 interpreter and have it call a function (C++ or python) of my choice for each canon-move (linear or arc I assume?) ??
[08:35:40] <micges> awallin: rather hard
[08:36:03] <micges> if it was easy it would be done already
[08:37:53] <micges> but wait for others for their opinions, they know it better
[08:38:22] <awallin> ok. I will leave IRC on the whole day I think, at the computer on and off.
[08:38:44] <awallin> might have time to work on tool-swept volumes in the evening, those will look like actual cutting simulations
[08:39:12] <micges> awallin: this subject is in my interest too but I have to leave now
[08:39:36] <micges> maybe tomorrow afternoon we can talk about it
[08:40:55] <micges> bye
[11:57:39] <alex_joni> awallin: I don't think it's that hard
[11:57:53] <alex_joni> the only problem is that the emc2 build system is pretty big
[11:59:35] <awallin> ok, it will be useful only after I have tool-swept-volumes impemented
[11:59:50] <awallin> which may take a few days or a few weeks, who knows...
[12:09:40] <alex_joni> I think you can connect it to the gcode module AXIS uses
[12:09:55] <alex_joni> AXIS uses another instance of the interpreter to generate the toolpath for the preview
[12:10:05] <alex_joni> so your simulator probably wants to do the same
[12:17:35] <awallin> that sounds good. for the preview, arcs are probably split up into line-segments also
[12:18:33] <awallin> * awallin will be back later...
[14:33:39] <cradek> calling a C++ function for each move is *exactly* what the interpreter does. AXIS converts them to python calls. you could trivially use either. you just have to write a canon interface (there's a list of functions you implement.)
[14:33:52] <cradek> see sai or AXIS for the simplest examples
[14:34:12] <cradek> bbl
[15:05:09] <awallin_> cradek: thanks, I think I'll work on the cylindircal cutter volumes now, and when they work try to integrate with AXIS
[16:01:46] <CIA-2> EMC: 03cmorley 07v2.4_branch * r47b13f912192 10/src/emc/usr_intf/pncconf/pncconf.py: Fix description of 7i43 firmware in pncconf