The-EG / OctoPrint-UBLMeshEdit

An OctoPrint plugin that can be used to view, edit and manage Marlin Unified Bed Leveling (UBL) meshes.
GNU Affero General Public License v3.0
17 stars 5 forks source link

Enhance Mesh Display #7

Closed The-EG closed 3 years ago

The-EG commented 3 years ago

This is based off an idea @lightmaster mentioned in #2 :

As far as how this plugin will work with Deltas, I'd suggest showing the 0-indexed column and row headers, as well as the corresponding X,Y coordinates for those headers. This way Delta users can see and know which points have a physical location on their beds and which ones lay outside their beds. Delta users could also just click a square and see where the nozzle moves to, then click the next outwardly one and see if it moves further outward, or if it remains still. Perhaps a way to manually desaturate the squares that lay outside the bed so a Delta user could visually see which ones physically exist? Or maybe be able to outline the outside-the-bed squares in red?

Displaying the row and column indexes are easy enough. Configurable in the plugin settings: image and enabled: image

Since UBL puts 0,0 at the lower left, I may move the headers to the bottom...

Displaying the actual bed coordinates will require gathering more information since the mesh could be inset and the bed size may not actually be square even if the mesh is. I'm punting on this for now.

Indicating the actual bed extents for delta printers should actually be easy enough I think, as long as some assumptions can be made:

With that it's fairly simple to show this (with a very fictitious 10x10 grid): image

With both: image

A 5x5 mesh looks a bit funny, but I suppose that's right: image

~Input needed: does this look right for the bed extents?~

Todo:

lightmaster commented 3 years ago

Personally, I think the column headers would be better at the bottom, so the 0's meet. Otherwise look about what I was thinking of.