Author Topic: Collision Detector+Clean up Mops  (Read 34392 times)

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1439
    • View Profile
Collision Detector+Clean up Mops
« on: June 23, 2015, 02:17:33 am »
HI all
Here is a fork of the Collision Detector with clean up mops.
In the zip file are 5 files. A .dll to pop in your plugins directory, a manual in pdf form and three tutorial .cb files
to help get you started and are used in the manual.
I'll put the manual here in pdf form so you can quickly see if it may be useful for you.
Dave.
New File Update found problem with some shapes throwing an exception in new dictionary function.
New Version 100% faster inside tool paths 50 % faster overall , warns for regions handles more shapes.
New version 1.3 + added doing text to the tutorial along with a .cb tut file
New version 1.3 data + handles more shape cases faster toolpathing for inside offsets extra example file.
warns for Mtext.
Dave
New Version handles open polylines adds Styles and Custom Styles (Inside Tool Paths Slower but more robust)
Dave.
Fixed spelling mistakes and a Cb file for the tut.
Dave
Fixed style library discovery method for other versions of windows
Dave
Fixed Duplicate libraries added to checkboxes when changing libraries
Dave
Fixed duplicate entries when selecting regions.
« Last Edit: September 09, 2015, 23:00:06 pm by dave benson »

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6432
    • View Profile
    • Cambam V1.0 French Doc
Re: Collision Detector+Clean up Mops
« Reply #1 on: June 23, 2015, 19:38:20 pm »
Hello,

It is a very useful plugin I think ;) but not too much time to do tests currently ..

It works on Linux version but the choice for the background color of the UI is a problem on Linux ; texts are unreadable (see the screen capture)

++
David

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1439
    • View Profile
Re: Collision Detector+Clean up Mops
« Reply #2 on: June 23, 2015, 21:07:22 pm »
HI David
Thanks for info , I did not realise what it would look like on Linux.
I'll post another file with the standard colours later today for you look at, and if that looks alright
I'll change the one in the zip file.
Dave

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1439
    • View Profile
Re: Collision Detector+Clean up Mops
« Reply #3 on: June 23, 2015, 21:42:23 pm »
Hi David
Try this when you get time and see if it is ok for Linux.
Dave
edit replaced file, Use  file at first post re: dictionary bug and changed colours for linux.
Dave
« Last Edit: June 24, 2015, 00:11:50 am by dave benson »

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 4688
    • View Profile
Re: Collision Detector+Clean up Mops
« Reply #4 on: June 24, 2015, 07:13:50 am »
Dave,
It looks like you did something with the code, only one line was out of place this time but it was easily corrected by reversing the polyline.
I know this part is difficult due to the fact that people's setup will vary, but because there was no 'Tool Number' entered, there was no tool change command generated in the g-code.
The fact that the small clean up tool is only going to cut the sections that need it is really excellent.
« Last Edit: June 24, 2015, 07:26:56 am by EddyCurrent »
Made in England

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1439
    • View Profile
Re: Collision Detector+Clean up Mops
« Reply #5 on: June 24, 2015, 11:38:38 am »
HI Eddy
Yeah its getting better but I discovered that it throws an exception with some regions, so I've fixed it  so that it now warns you to convert to polylines, and have kept testing on some other files, and there always seems to be something else for example I was doing some Mtext and it went well except for the text was offset about a third of it's height so I think it's got something to do with the margin at the top and bottom of the text and because each font has different spacing I'll have to find out what the spacing is for each and I'm not sure how to do this.
I'll keep plugging away at it tonight and post an updated file tomorrow.
Dave

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 4688
    • View Profile
Re: Collision Detector+Clean up Mops
« Reply #6 on: June 24, 2015, 12:09:25 pm »
HI Eddy
 I was doing some Mtext and it went well except for the text was offset about a third of it's height so I think it's got something to do with the margin at the top and bottom of the text and because each font has different spacing I'll have to find out what the spacing is for each and I'm not sure how to do this.
Dave

I had similar issues with the 'Text on Polyline' plugin, the source is there if you want to check it out, I used MText for that.
Roughly what I did was position a letter at 0,0,0 then using GetExtents, measured the offsets from X and Y, however the kerning of letters varies with combinations and font size, so you have to be a bit more crafty sometimes. It took a lot of thinking about before I got to an answer that satisfied me, anyway it's all in the source code for that plugin.  
« Last Edit: June 25, 2015, 10:13:21 am by EddyCurrent »
Made in England

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6432
    • View Profile
    • Cambam V1.0 French Doc
Re: Collision Detector+Clean up Mops
« Reply #7 on: June 24, 2015, 17:57:05 pm »
Hello

Quote
Try this when you get time and see if it is ok for Linux.

It's a little better, but remain difficult to read (at least for me)

++
David

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1439
    • View Profile
Re: Collision Detector+Clean up Mops
« Reply #8 on: June 24, 2015, 22:40:06 pm »
HI Eddy
Thanks for the reply and I'll definitely look at your text on a polyline code.
David is there a plugin that looks good on Linux  so I can have a look at the colours, it appears that the text itself looks washed out in Linux  but on windows it is black.
Dave

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6432
    • View Profile
    • Cambam V1.0 French Doc
Re: Collision Detector+Clean up Mops
« Reply #9 on: June 24, 2015, 23:09:48 pm »
Hello,

Quote
David is there a plugin that looks good on Linux  so I can have a look at the colours

The wrapper plugin
http://www.atelier-des-fougeres.fr/Cambam/Aide/Plugins/Wrapper_plugin.html

++
David

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 4688
    • View Profile
Re: Collision Detector+Clean up Mops
« Reply #10 on: June 25, 2015, 07:22:34 am »
When I looked at recommended colour combinations, yellow and white were the best backgrounds for grey text.
David, is the text grey on all Linux systems or is it just your personal settings ?
Made in England

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1439
    • View Profile
Re: Collision Detector+Clean up Mops
« Reply #11 on: June 25, 2015, 07:51:43 am »
HI David and Eddy
I've just uploaded a New Version, 100% faster inside tool paths 50 % faster overall , warns for regions handles more shapes. I've also changed the text colour to Black from the windows "System Control Text" option
which may be better to see. over the weekend I'll check out the text issues.
Dave.

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6432
    • View Profile
    • Cambam V1.0 French Doc
Re: Collision Detector+Clean up Mops
« Reply #12 on: June 25, 2015, 13:34:16 pm »
Hello,

Quote
David, is the text grey on all Linux systems or is it just your personal settings ?

I don't know ; I'm not a Linux user, I install it (with difficulty) only to be able to test CamBam and the plugins (ubuntu) and I never use it for other things  :) ... I do not even know how to change the background or font color on Linux  :-[

I test later the new version of the plugin, I have to go to work ..

++
David
« Last Edit: June 25, 2015, 13:35:51 pm by dh42 »

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6432
    • View Profile
    • Cambam V1.0 French Doc
Re: Collision Detector+Clean up Mops
« Reply #13 on: June 25, 2015, 21:58:39 pm »
Hello,

Ok for the colors on Linux ;)

++
David

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1439
    • View Profile
Re: Collision Detector+Clean up Mops
« Reply #14 on: June 26, 2015, 03:37:40 am »
HI David
I'll apply those colour prefs to the rest of the form and keep doing that from now on.
I'll post an update tonight (just running a test on the mill now for text) the "N" from webdings font, the Jolly Roger.
Cut the pocket with a 6mm cutter, Profile with a 3mm cutter (looks good) so far,  and now have to grind up a 0.5 mm cutter from a used engraving tool. wish me luck :)
Dave