Giter VIP home page Giter VIP logo

Comments (13)

sevenoffline avatar sevenoffline commented on May 30, 2024

To further clarify what I'm trying to express, here a picture to illustrate:
https://imgur.com/a/4ei2K9s

from mapa.

fgebhart avatar fgebhart commented on May 30, 2024

Thanks for adding the screenshots. I still need to need to investigate this. Is there any free mesh analyzing tool you would recommend (for unix systems?).

from mapa.

sevenoffline avatar sevenoffline commented on May 30, 2024

I'm only familiar with 3D on Win, unfortunately. But Blender should be more than capable to show & filter edgeflow and open edges.

Sidenote: maybe not the most economical approach but how about duplicating the top relief, moving it downwards by the z-offset value, flatten it and create the side walls by connecting the (same numbered) edge-vertices?

from mapa.

fgebhart avatar fgebhart commented on May 30, 2024

how about duplicating the top relief, moving it downwards by the z-offset value, flatten it and create the side walls by connecting the (same numbered) edge-vertices?

Yes, I do basically have the top relief already at hand before even "extruding the 3d shape". Thus I could simply copy that and put it to z=0. However, that will likely blow up the STL file in size, as it almost duplicates the number of triangles.

Originally I simply went with only 2 triangles for the button surface and I still wonder why this is okay for two sides of the model but not for the other two. 🤔

from mapa.

sevenoffline avatar sevenoffline commented on May 30, 2024

Well, right now all four sides are connected to the top relief! But no side is connected to the bottom - maybe because it's only made of only two triangles?! Is it possible to create one center vertex on the bottom surface and connect all side-vertices with that one? That would result in the most efficient triangulation possible for the bottom side.

from mapa.

fgebhart avatar fgebhart commented on May 30, 2024

Ah, from your image reading "GOOD" I assumed two sides are in fact connected to the bottom.

Unfortunately the STL file format does not have such thing as "connect to". It consists of triangles, which consist of coordinates only. With that I assume having the same number of triangles in the bottom as in the top relief is the way forward for solving this issue.

from mapa.

fgebhart avatar fgebhart commented on May 30, 2024

Ok, I am able to verify the bottom not being closed with any of the sides using blender. Orange highlighted are open connections:

Screenshot from 2022-04-01 11-03-26

from mapa.

sevenoffline avatar sevenoffline commented on May 30, 2024

See? So if all polygons have to be triangles, those edges coming down the sides must be connected to some vertex on the bottom side (like the typical cylinder-primitive).

from mapa.

fgebhart avatar fgebhart commented on May 30, 2024

I gave duplicating the top mesh a try. Unsurprisingly it does double the size of the STL file. Even though the implementation is rather straight forward and easy to maintain I don't like the solution. A laptop with 8GB ram quickly comes into out of memory issues when post processing files of a few hundreds of MB in blender.

Which is why I'm looking for a more efficient way to construct the bottom side with less triangles. Did a quick sketch and think I found something. It also seems to work with rectangles 🙂

2022-04-01 21 39 54

However, still need to find a performant implementation.

from mapa.

fgebhart avatar fgebhart commented on May 30, 2024

Just putting this here for future reference:

Plot of the bottom triangles:
Screenshot 2022-04-05 at 21 37 43

Created using branch:
https://github.com/fgebhart/mapa/tree/plot_bottom_triangulation

from mapa.

fgebhart avatar fgebhart commented on May 30, 2024

The issue should be fixed by #53 and #55.

However, a new mapa version is not yet released and not integration into the streamlit app. Should be done soon, though.

from mapa.

fgebhart avatar fgebhart commented on May 30, 2024

Have released mapa v0.8.0 and rolled the changes out in mapa-streamlit v0.6.0.

-> check it out as usual here 🎈

Let me know if there are still issues with unclosed connections between triangles.

from mapa.

sevenoffline avatar sevenoffline commented on May 30, 2024

Perfect! Flawless, great job!

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.