In the attached files there is a 3d surface and zigzag toolpath, but the problem is i dont know how to do it with spiral toolpath. If anyone can tell how to create a spiral toolpath over the existing surface i can easily revise the codes. So i mean the problem is algorithm of creating spiral toolpath over an existing 3d surfafce that was defined by control points, not the entire homework.
Neither of the three paths in the three files looks like a regular zigzag if seen from above. Where in the files is the zigzag define and how (I am speaking of the 2D path which obviously should be projected)?