Simulating two-sided cutting

70 views
Skip to first unread message

drs...@gmail.com

unread,
Aug 8, 2025, 10:15:51 AMAug 8
to CAMotics Users
Is there any way to simulate two sided cutting where you cut the stock, flip it over, then cut the other side? I can export the simulated first side cut, but can't figure out how to import it as the stock for the second cut. 

For now I'm exporting two meshes and using a second program to intersect the meshes.

Michael Stockum

unread,
Dec 18, 2025, 4:54:22 AM (7 days ago) Dec 18
to CAMotics Users
screenshot.3067.jpg
4sure there's!

Write or link a Matrix lib in. (Iused: http://sylvester.jcoglan.com/) . TPL holds all orientations! (position={x y z a b c u v w})!
I interpret abc as toolangles , turnpoint TCP. 
ovverride your cut() to a cut in a point transformed to the other side (i.e. by a=180).
Thats all! 
Works also for full rotary code, (here the Venus from Deskprotos samples :-)):
screenshot.3068.jpg 

Joseph Coffland

unread,
Dec 18, 2025, 8:05:04 AM (7 days ago) Dec 18
to CAMotics Users
This is awesome!

I suppose if you use the spherical tool shape then tool orientation does not matter.  Would you be willing to share your code?  I'd love to see both your TPL and GCode.

Michael Stockum

unread,
Dec 18, 2025, 9:55:27 AM (7 days ago) Dec 18
to CAMotics Users
Yes, I use the spherical tool because There's no way to access toolorientation without modifing Camotics sources..
But if I'd mill without moving TCP towards center of the "Ball" it would result in an error.. i.e. Z-height would be one diameter too short, cause milling on the "upside with TCP" and  "downside with TCP+diameter"...

Yes we can share.. Git? Flat copy?

Joseph Coffland

unread,
Dec 18, 2025, 9:56:40 AM (7 days ago) Dec 18
to CAMotics Users
Git would be great.

Michael Stockum

unread,
Dec 18, 2025, 5:02:20 PM (7 days ago) Dec 18
to CAMotics Users

Joseph Coffland

unread,
Dec 18, 2025, 5:19:22 PM (7 days ago) Dec 18
to CAMotics Users
Ok cool.  So I found the added tpl_lib/sylvester and tpl_lib/tdxf.  Do you have an example CAMotics project that uses these?

Michael Stockum

unread,
Dec 18, 2025, 6:21:08 PM (7 days ago) Dec 18
to CAMotics Users
See in docs msnotes...pdf.....
4 Parsing The Pycam gcode towards tpl I've also an js basedParser, (created with peg.js or peggy.js) which is not included at the moment.....
sorry may be later on :-)

Michael Stockum

unread,
Dec 18, 2025, 6:21:12 PM (7 days ago) Dec 18
to CAMotics Users
The tdxf is used fore trochoidal milling of dxf shapes, sample also included and somehow mentioned within the pdf!

Joseph Coffland

unread,
Dec 18, 2025, 6:23:53 PM (7 days ago) Dec 18
to CAMotics Users
Awesome!  Thanks!

Michael Stockum

unread,
Dec 19, 2025, 2:47:50 AM (6 days ago) Dec 19
to CAMotics Users
UR welcome!
Merry Christmas.
Reply all
Reply to author
Forward
0 new messages