Hello,
is it possible to fill the toolpath at sim with any colour ?
Bernd
Hello,
is it possible to fill the toolpath at sim with any colour ?
Bernd
I am afraid that isn’t possible at the moment. Did you want to just highlight the current segment that is being cut or the whole tool path?
If i insert G-Code snippets in the Operations Window,
this G-Code will not translated to a toolpath at the grafic window.
My idea is to translate the G-Code snippets inside SIM.LUA to the Code which SIM.LUA at the parser knows.
But if i would do this, i would see only the current position of the tool and not its cutted path.
Bernd
I am afraid there isn’t any way of doing that without changing the C++ part of the plugin. Do you have any C++ experience?
With C++ i have no experience, but i know C and Visual Basic.
I think it’s time to take a try with C++.
If u allow me to change it, i would try.
Which C++ part from which plugin is it ?
Thank you
Bernd
I have attached the relevant files. Unzip everything into c:\program files\SheetCam TNG development\SDK. You will need Microsoft Visual C++ Express 2008 to compile the plugin. You can download it for free from the http://www.microsoft.com/express/Downloads/. Once you have the compiler installed you should just need to click on sim.vcproj to open the project.
Thank you for the uploaded source files.
The rebuild of the project works fine.
Now i try to find out, how i can draw a continues toolpath behind the tool.
May be it works if i draw on a new layer.
Bernd
You need to look into OpenGl. All of the complex lighting, scaling and viewpoint is done automatically. All you need to do is draw on the OpenGl context. The current sim code generates the circle and crosshairs as an OpenGl list. When cSim::OnDrawDisplay() is called it shifts the graphics context origin to the tool position and draws the list. If you want to draw your tool path you can create a new list containing the tool path then draw it in the same way. As you don’t need to shift the list you need to call it before the glTranslatef call.