Giter VIP home page Giter VIP logo

Comments (1)

fgebhart avatar fgebhart commented on May 31, 2024

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.

from mapa.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.