Author Topic: Control Break unexpected results CB Ver1 64bit  (Read 16934 times)

Offline ChrisCTS

  • Ewok
  • *
  • Posts: 14
    • View Profile
Control Break unexpected results CB Ver1 64bit
« on: May 11, 2023, 05:46:32 am »
Hi all,
         Finally I get this bug to show on a simple drawing, so I can rule out me pushing Cambam too much.
I have a 4.6mm circle and a line crossing it, ( Making the cut out for a switch )  if I select the circle then the line and do Control Break, I get one result, quite a mangled circle,  :-\ if I select the line then the circle I get a different result, my line is now too short on one side  and the circle has a bit of a kink in it.
However I can draw another circle and line  of a different size and get the same expected result no matter which order the selection is made  ( all be it with one unwanted bit already trimmed ).

file attached  so you can try doing a control Break and see if you get the same results.


Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9079
    • View Profile
Re: Control Break unexpected results CB Ver1 64bit
« Reply #1 on: May 11, 2023, 11:50:39 am »
That's not CamBam's fault.  It's NOT a bug.

You're setting your 'Intersection tolerance' too high.  Drop it down to (say) 1/10 of its current setting, and try again. If that doesn't work, cut it down again.  I normally set my break tolerance to about 0.01 of the drawing unit, max.  Sometimes smaller.

Lloyd
« Last Edit: May 11, 2023, 13:10:08 pm by lloydsp »
"Pyro for Fun and Profit for More Than Fifty Years"

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5330
  • Made in England
    • View Profile
Re: Control Break unexpected results CB Ver1 64bit
« Reply #2 on: May 11, 2023, 21:36:20 pm »
It took me a while to understand what Control Break meant but eventually I realised it referred to the keyboard shortcut, Ctrl+B , Edit->Break at intersections

Lloyd is exactly right, for metric settings I generally use 0.1 as the tolerance.
Filmed in Supermarionation

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9079
    • View Profile
Re: Control Break unexpected results CB Ver1 64bit
« Reply #3 on: May 12, 2023, 12:45:33 pm »
It's funny how some folks will scream "BUG! BUG!", but when you show them it's their settings, not a peep!  ;)

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

Offline Dragonfly

  • CNC Jedi
  • *****
  • Posts: 2680
    • View Profile
Re: Control Break unexpected results CB Ver1 64bit
« Reply #4 on: May 12, 2023, 16:52:09 pm »
It's funny how some folks will scream "BUG! BUG!", but when you show them it's their settings, not a peep!  ;)

Lloyd

 ;D

Offline Bubba

  • CNC Jedi
  • *****
  • Posts: 3381
    • View Profile
Re: Control Break unexpected results CB Ver1 64bit
« Reply #5 on: May 12, 2023, 17:33:58 pm »
It's funny how some folks will scream "BUG! BUG!", but when you show them it's their settings, not a peep!  ;)

Lloyd

Exactly right, Lloyd.

Simple, yes that didn't work, yes it does work, thanks! It make me wonder why should I bother with helping.. I appreciate you guys effort, though. Thanks.
My 2ยข

Win11, CB(1.0)rc 1(64 bit) Mach3, ESS, G540, 4th Axis, Endurance Laser.

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5330
  • Made in England
    • View Profile
Re: Control Break unexpected results CB Ver1 64bit
« Reply #6 on: May 12, 2023, 20:31:02 pm »
Obviously Lloyd's comment is based upon his observation over a reasonable time span but I think it's only fair to point out some forum members do not make a daily habit of dropping by.

My biggest gripe is with first time poster, they very rarely come back with post #2
Filmed in Supermarionation

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9079
    • View Profile
Re: Control Break unexpected results CB Ver1 64bit
« Reply #7 on: May 12, 2023, 20:38:03 pm »
Yeah... but when you're reporting a 'bug', and expecting some sort of resolution, doesn't it make sense to check back in soon, and see if someone has one?

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

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5330
  • Made in England
    • View Profile
Re: Control Break unexpected results CB Ver1 64bit
« Reply #8 on: May 12, 2023, 21:47:34 pm »
I suppose that if I could be bothered to report a 'bug' then I would also be bothered to check back often but if I had a bigger issue going on in my life then I might not be bothered for a day or two.
Filmed in Supermarionation

Offline ChrisCTS

  • Ewok
  • *
  • Posts: 14
    • View Profile
Re: Control Break unexpected results CB Ver1 64bit
« Reply #9 on: May 14, 2023, 22:16:01 pm »
Hi All,

Offline ChrisCTS

  • Ewok
  • *
  • Posts: 14
    • View Profile
Re: Control Break unexpected results CB Ver1 64bit
« Reply #10 on: May 14, 2023, 22:32:33 pm »
Try again, ( hit the wrong Key and posted before finishing my reply )
 Lloyd, thank you for your reply, yes that works.
 Sorry I didn't get back to check before this morning.  also should have stated Break at intersections.
this is my project I'm working on ( a case for my Composite Video Pattern Generator ) I am so busy on work stuff I haven't had much time for my own stuff. + a bit of the flu last week as well more flooding in Auckland last week.
I'm grateful for the answer. but don't understand how it works. Do you have anyway to explain how the Tolerance is working  when using control break ( for breaking at intersections ), the tolerance for Control Join  makes sense to me, but for a break especially in this case  where the line  does in fact cross the circle..... what does the "tolerance" do ? In the help file tolerance is mentioned for a Join but not for a break.
Thank you.
Chris

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9079
    • View Profile
Re: Control Break unexpected results CB Ver1 64bit
« Reply #11 on: May 14, 2023, 23:11:04 pm »
Chris,
Good to hear back.  The tolerance figure determines how close to an actual intersection CB may decide (on its own) to break a line, based upon (I suppose) internal vector points or some-such similar points in the graphic primitives.

For instance, if you 'explode' your circle, you'll see it's made of three segments, and my presumption is that if the tolerance is set high enough, it might decide that the end-point of one of those segments is a 'suitable' place for an intersection -- even though we know it's not one.

If I do a break at intersections with ctl-B and the intersection tolerance set to 1.0, the circle segment end-point at -41.15, -1.991858, 0.0 becomes one of the 'cusps' of that bad break.  It seems to work differently if I use the menu version of break at intersections (but still not correctly, until the value is set very small.)

To see it happen, draw a one-point point-list.  Then edit the point so it resides at -41.15, -1.991858, 0.0.  Set your intersection tolerance to 1.0, select your circle and line, and do a ctl-B.  Cute, huh?  Interestingly-enough, the OTHER segment end-point at -41.15, +1.991858, 0.0 is another cusp in that improper break.

It's not something the user can take direct control of, so it's always a good idea to use a small value for the intersection tolerance.

Lloyd
« Last Edit: May 14, 2023, 23:38:40 pm by lloydsp »
"Pyro for Fun and Profit for More Than Fifty Years"

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9079
    • View Profile
Re: Control Break unexpected results CB Ver1 64bit
« Reply #12 on: May 17, 2023, 14:06:15 pm »
Chris,
I did another experiment 'just to see'.  I pondered that there must be some utility to that intersection tolerance setting.

So, I drew two polylines that did NOT quite intersect, but came close to one another.  Then I tried a very low intersection tolerance.  Nothing happened.  When I set it larger than the gap between the lines, they DID break, and actually seemed to do so properly!

I guess that's why Andy put the feature in there.

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