Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: draw area from center outwards #57

Open
sevenoffline opened this issue Apr 7, 2022 · 1 comment
Open

feature request: draw area from center outwards #57

sevenoffline opened this issue Apr 7, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@sevenoffline
Copy link

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.

@fgebhart
Copy link
Owner

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 fgebhart added the enhancement New feature or request label Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants