vlachoudis / bCNC

GRBL CNC command sender, autoleveler and g-code editor
GNU General Public License v2.0
1.58k stars 533 forks source link

Probing user defined paths #249

Open MForlong opened 8 years ago

MForlong commented 8 years ago

Hello!

I'm sorry if this posted in the wrong area.

Thank you very much for this awesome software! I was looking over the probing function and I was wondering what would be the best method (if any) to probe say the points along a circle that might be distorted. Instead of probing 1000 irrelevant points on a grid? I have a few simple but relatively large parts that only need to be flat in small areas. It would be nice to only probe the areas that are of interest to me. Would this be done in a macro or plugin?

HomineLudens commented 8 years ago

Hi @MForlong , I proposed more or less the same here [(https://github.com/vlachoudis/bCNC/issues/29#issuecomment-100668436)] Then I forgot till now :) Maybe I can have a look and see if something can be done.

MForlong commented 8 years ago

I was thinking the WCS, "Z mapping of a desired area for possible deformation in the z" I was wondering how hard it would be to define the "desired area." could they be done along the actual tool path and instead of averaging the distortion of points to form a plane it could do between points along a tool path.

Ozzy62 commented 8 years ago

It is possible to control the area that are used for probing in the probe set up.

MForlong commented 8 years ago

Hi Ozzy,

Can it for example: I have a part 100 mm x 100 mm and I need 1 mm resolution only at certain points (maybe 20). I would like to only have to find and store the Z offsets of the small areas of interest instead of having to prob 9,999 points on a grid.

Ozzy62 commented 8 years ago

What you can do is restrict the area that you probe, and set the number of point in each direction. But they will be spaced by the same distance, so no I don't see a way of probing individual points in individual areas.

lalo-uy commented 8 years ago

The question is what happend if I probe between (10,10) and (20,15) and with that map mill from (1,1) to (100,100)

Enviado desde mi iPad

El 24 feb. 2016, a las 17:14, Ozzy62 notifications@github.com escribió:

What you can do is restrict the area that you probe, and set the number of point in each direction. But they will be spaced by the same distance, so no I don't see a way of probing individual points in individual areas.

— Reply to this email directly or view it on GitHub.

HomineLudens commented 8 years ago

Only the probed area is altered, all the outside area is streamed as it is. My propose was to automatic avoid probing area where there's no gcode.

vlachoudis commented 8 years ago

I think @Effer proposal is the easiest. Probe only the locations that are around the gcode. Most of the code for doing it is already present. I will think if there is an easy way of calculating it without extensive intersection calculations which are expensive in python.

HomineLudens commented 8 years ago

@vlachoudis I give a look to the code but it's too complex for me, it need many modifications to the codebase and I prefer avoid mess up the code. Do you think a graphical approximation approach could be possible: I mean using the canvas rendering to determinate if a sub-region is not full white.

vlachoudis commented 8 years ago

@Effer indeed a a graphical approximation from the canvas can be a solution.