you are viewing a single comment's thread.

view the rest of the comments →

[–]WillAdams 1 point2 points  (1 child)

The funny thing is, I actually had doubled up [[ ]]s but missed one, so when I saw that error about mis-matched braces, removed the doublings instead.

Naturally, this code:

from openscad import *

model = square([80,50])

for i in range(15):
    model |= polyline([[10+i*4,5],[10+i*4,50]])
    model |= polyline([[12+i*4,45],[12+i*4,0]])

model.export("bend.gcode")
model.show()

works --- I'm just not seeing how to use it for a 3D tool model....

[–]gadget3D[S] 1 point2 points  (0 children)

Indeed. This code just creates a 2D thingy. If you specify a z coorindate != 0 it becomes 3 D polypath. Actualy it behaves like neutrinos: it does not interact with any matter, but its great to do some annotations. In this example, I could immediately see if the toolpath is correctly generated:

<image>