mapa icon indicating copy to clipboard operation
mapa copied to clipboard

feature request: draw area from center outwards

Open sevenoffline opened this issue 3 years ago • 1 comments

I rectangled an area and tried to do it as square as possible. I enabled "square output". On the resulting model the desired center was positioned too far to the right.

I wonder if it's possible to draw the rectangle from the center outwards (not from corner to corner) and make that center on the map stay the center on the model.

sevenoffline avatar Apr 07 '22 21:04 sevenoffline

Unfortunately I don't see a way of achieving that, as I'm again just relying on the provided features by the 3rd party libraries I'm using.

I agree, that trying to get a square with a certain feature (city, summit) in the exact center of a model might be tedious currently. But currently I prefer simplicity (even if it means lesser features) over complexity (having many features).

I can think of the potential workarounds / approaches to mitigate this:

  • Draw the rectangle intentionally rectangular (not squared) with one overly exaggerated long side while enabling the "Squared model output" feature to force the mapa algorithm to cut the long side. That way, it might be possible to better eyeball the actual center of the resulting output STL file.
  • Manually construct a bounding box geometry and directly pass it to the mapa.convert_bbox_to_stl method.
  • Post-process the mapa output STL file using other 3rd party software like e.g. blender to cut out the desired section of the model.

Leaving this issue open, in case someone comes up with an other idea of how to remedy this.

fgebhart avatar Apr 10 '22 09:04 fgebhart