FluffyMortain / heekscnc

Automatically exported from code.google.com/p/heekscnc
Other
0 stars 0 forks source link

zigzag function #240

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?

1. I have create a cube
2. selected zigzag "button/menu or right mouse"

HeeksCAD 
Looking for default data in '/home/salvarane'
Importing data from /home/salvarane/default.tooltable
Looking for default data in '/usr/local/lib/heekscnc'
Importing data from /usr/local/lib/heekscnc/default.speeds
Traceback (most recent call last):
  File "/tmp/post.py", line 53, in <module>
    ocl_funcs.zigzag('/tmp/zigzag1.stl', tool_diameter, corner_radius, 1, -1.51, 11.51, -1.51, 11.51, 'X', 0, 0, clearance, rapid_down_to_height, start_depth, step_down, final_depth, 1)
  File "/usr/local/lib/heekscnc/ocl_funcs.py", line 30, in zigzag
    s = STLSurfFromFile(filepath)
  File "/usr/local/lib/heekscnc/ocl_funcs.py", line 8, in STLSurfFromFile
    s.build_kdtree()
AttributeError: 'STLSurf' object has no attribute 'build_kdtree'

Original issue reported on code.google.com by b.ghiac...@gmail.com on 9 Aug 2010 at 8:44

GoogleCodeExporter commented 9 years ago
I removed the call to s.build_kdtree() and it seems to work alright.  The 
STLSurf class was modified by Anders Wallin and I gather this step is either no 
longer necessary or is being done by the STLSurf class's constructor.

Original comment by David.Ni...@gmail.com on 9 Aug 2010 at 9:38

GoogleCodeExporter commented 9 years ago
Thanks 

Original comment by b.ghiac...@gmail.com on 9 Aug 2010 at 9:50

GoogleCodeExporter commented 9 years ago
David. Excellent! I was just talking with Anders about this on #cam. I hadn't 
got as far as changing the code, though. I am trying to update the Windows 
project file.

Original comment by danhe...@gmail.com on 9 Aug 2010 at 9:52