Author Topic: [V1 - 61] Strange Bug in CamBam V1  (Read 38004 times)

Offline pixelmaker

  • CNC Jedi
  • *****
  • Posts: 1996
    • View Profile
    • pixelmaker
[V1 - 61] Strange Bug in CamBam V1
« on: August 14, 2020, 21:18:17 pm »
hello
I get these crazy toolpaths in CamBam V1 and V1 64bit if the object is a circle, I set lead in via spiral with angle 0 and the starting point is exactly below a holding tab.
The bug does not occur in V0.9.8. If I move the holding tab away from the starting point, the bug also does not occur. Since the error occurs only in V1 it is for me a definite bug

ralf
« Last Edit: August 14, 2020, 22:13:05 pm by dh42 »

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7597
    • View Profile
    • Cambam V1.0 French Doc
Re: [V1 - 61] Strange Bug in CamBam V1
« Reply #1 on: August 14, 2020, 22:13:29 pm »
Hello

Same here, added to buglist

++
David

Offline Dragonfly

  • CNC Jedi
  • *****
  • Posts: 2680
    • View Profile
Re: [V1 - 61] Strange Bug in CamBam V1
« Reply #2 on: August 15, 2020, 08:00:27 am »
Same here. But if I convert the circle to a poly then the problem disappears.
It is not the first time I notice that CB produces different results when working with built-in entities like circle or rectangle. Converting them the poly usually solves the problem.
I suspect it lies in the floating point math during tool path calculation.

Offline pixelmaker

  • CNC Jedi
  • *****
  • Posts: 1996
    • View Profile
    • pixelmaker
Re: [V1 - 61] Strange Bug in CamBam V1
« Reply #3 on: August 15, 2020, 16:34:05 pm »
I have written that the error only occurs with the circle. But there's more.
I turn the circle into a polyline, change the ID number. The error is gone.
Now I take two steps back. The circle is circle again and the ID number is reset. Nevertheless the error does not occur any more and I see no difference in the values.

Even if I create the file in 0.9.8 and open it in V1 the error is not there.
See attached file
Maybe this is a .NET4 problem

ralf
« Last Edit: August 15, 2020, 16:49:51 pm by pixelmaker »

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9090
    • View Profile
Re: [V1 - 61] Strange Bug in CamBam V1
« Reply #4 on: September 09, 2025, 00:29:38 am »
Well, to follow up in 2025... It happens in V1.0 on polylines, also.  I was cutting some 'time-critical' components of which there were four identical copies on the stock, and I let CamBam decide the start points.  All four shapes had holding tabs.  They were 'irregular" shapes; not circles, nor rectangles.  I was unaware of this bug.

One of the starting points landed almost (not quite) at the peak of a triangular holding tab's position.  I was using an outside profile, spiral lead-in with angle 0,  and a depth increment of 0.015" per pass around the shape.

When it reached the top of the tabs, it began to move above the clearance plane a distance about the same as it should have been moving below the stock surface... giving very much the same toolpath as shown in the circle error below.

So it does happen on polylines, as well.

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9090
    • View Profile
Re: [V1 - 61] Strange Bug in CamBam V1
« Reply #5 on: September 09, 2025, 20:25:01 pm »
And following up on that -- it seems to be well-ensconced in 1.0.

Today, I tried it with everything different:  Different shaped polyline figures.  Different distance between them.  Different thickness of material.  Different cutter diameter.  Different holding tab size in both dimensions.  Different number of holding tabs.

The first generation of toolpaths created a start-point on the second shape that landed JUST inside the edge of one tab.  Viewing the toolpaths in the orthogonal view, it plainly created the same anomaly.

Watch your start points on multiple profiles with holding tabs!!!

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"