CauldronDevelopmentLLC / CAMotics

Open-Source Simulation & Computer Aided Machining - A 3-axis CNC GCode simulator
Other
622 stars 143 forks source link

Support muliple workpieces #414

Open sakesfar opened 8 months ago

sakesfar commented 8 months ago

Hi!

First, huge thanks to the work you have put and continue to do. Hats off.

I was thinking to add an ability for the software to render two pieces at the same time. The reason behind this is the following: Suppose we have a GCode with initial data. We run a simulation and see the result. Then, perhaps, in the initial GCode we might want to modify some parts of the code and run it too. Perhaps, it can be like running just two simulations at the same time.

I was trying to trace the part of the code responsible for that, maybe positioning of the workpiece.

As a way to go around this challenge, I was trying to add different gcode files , but then the workpiece was automatically adjusting its dimensions to fit the the biggest size. In the pic below I have two workpieces, sample and flower. The bigger one, flower, overlaps the sample workpiece. Screenshot_20240303_212625

Perhaps, when adding a new file, if we can somehow adjust the new workpiece's bottom left corner ( the coordinate system's centre) would do the job.

But so far as I understand there is only one single workpiece , even if we add several files. Could you point where I can modify or add this feature so that to have two workpiece in the code?

Another thing, could you please add description of the application's architecture. I am not so experienced to work with such huge projects. I know it might sound like it is my job to "decode" what is written, and the code is pretty self-explanatory. It would perhaps be helpful also to other no so experienced developers like me. 🙂

I apologize in advance if I was unclear with my request.