Matty-Downing2169 / opencamlib

Automatically exported from code.google.com/p/opencamlib
GNU General Public License v3.0
0 stars 0 forks source link

ballcutter.cpp: d<0 ERROR! #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
using the attached "sphere2.stl" file and the script below, I get lots of 
"ballcutter.cpp: d<0 ERROR!"
"point.cpp: xyClosestPoint Error!"
messages

import ocl as cam

if __name__ == "__main__":  
    cutter = cam.BallCutter(3.0)
    path = cam.Path()
    path.append(cam.Line(cam.Point(-5.0, 1.2, 0), cam.Point(5.0, 1.2, 0)))
    s=cam.STLSurf("sphere2.stl")
    dcf = cam.PathDropCutterFinish(s)
    dcf.setCutter(cutter)
    dcf.setPath(path)
    dcf.run()

Original issue reported on code.google.com by danhe...@gmail.com on 2 Apr 2010 at 9:47

Attachments:

GoogleCodeExporter commented 9 years ago
the cutter was being dropped against a vertical edge.
there is now a guard in BallCutter::edgeTest to return and do nothing if the 
edge is
vertical.
Try and see what results you get with r113

Anders

Original comment by anders.e...@gmail.com on 2 Apr 2010 at 1:37

GoogleCodeExporter commented 9 years ago
Yes, this is fixed in r113.
Thanks.

Original comment by danhe...@gmail.com on 2 Apr 2010 at 9:58