Giter VIP home page Giter VIP logo

Comments (8)

dsieger avatar dsieger commented on June 10, 2024

Hi Frédéric,

The exception already tells you what's wrong with the mesh you are trying to load: It contains a complex (non-manifold) edge. PMP only supports 2-manifold meshes. The other tools you mention just load an arbitrary triangle soup, not a well-connected mesh. Your best option probably would be to try to fix the non-manifold edges in another tool or to make sure the meshes you generate are 2-manifold.

Hope this helps.

from pmp-library.

delhoume avatar delhoume commented on June 10, 2024

So I guess the best (not the easiest) solution is to fix my mesh generation...
Thanks for answering

from pmp-library.

dsieger avatar dsieger commented on June 10, 2024

Fixing the source of the issue is certainly a good idea.

We might also change the behavior of add_face() to ignore such configurations in the future. Keeping this open as a question / reminder.

from pmp-library.

cshan avatar cshan commented on June 10, 2024

BTW, I have the same issue, is there anyway to fix the "Complex mesh"?

from pmp-library.

delhoume avatar delhoume commented on June 10, 2024
image image

Thank you very much !

from pmp-library.

dsieger avatar dsieger commented on June 10, 2024

Wow, that looks like a lot of non-manifold faces! Run-time must be pretty bad though due to all the exceptions being thrown. However, for the moment that was the minimally invasive change that does not change the API.

Would you mind sharing one of those meshes? Would be a nice case for benchmarking.

from pmp-library.

delhoume avatar delhoume commented on June 10, 2024

Sure.

https://drive.google.com/file/d/1EhtwiregeWaK5MzniIQB_pQRCq0Rrqxg/view?usp=sharing

I have lighter versions of these somewhere but I need to find or regenerate them...

The process is very simple:

  • I use a custom program to generate a huge triangle soup with marching tetrahedra or cubes of the fractal scalar field.
  • then I decimate this soup (maybe 30 Gigs) using a very clever out-of-core decimating program that I only have the Linux 32 bit executable for (it was given by a student maybe 20 years ago, can find his name but never hear of him since)
  • I then convert to STL the result which can be handled as you can see.

The step where all topology errors are introduced is the polygonization I think, I am not a specialist and my code is very old.
I can share it also if you want.

from pmp-library.

delhoume avatar delhoume commented on June 10, 2024

Update : I found a much smaller file

https://drive.google.com/file/d/12bQb5UsA3ltwjI027vC1UR7y2LFCw-ev/view?usp=sharing

I also was able to find the decimation program:

cluspartred <OPTIONS> filename [filename, ...]
     (c) 2002,2003 by Heiko Lippmann
  OPTIONS:
    -v                                   print version
    -q                                   be quiet (no verbose output)
    -e <double>                          maximum mesh error (> 0.0)
    -p <double>                          mesh inversion penalty (> 1.0)
    -a <double>                          compactness ratio (> 0.0 && <= 1.0)
    -c <integer>                         grid size n for 2^n cells (n >= 1)
    -f <integer>                         grid shift factor (>= 0.6) use with care!
    -t <filename>                        base filename for temporary files
    -r <filename>                        base filename for reduced files
    -i                                   delete input file after processing
    -m                                   delete temporary files after processing
    -s <integer>                         maximum partition size
    -b <xmin xmax ymin ymax zmin zmax>   bounding box
Missing arguments.
Cluspartred version 0.1

from pmp-library.

Related Issues (20)

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.