Comments (8)
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.
So I guess the best (not the easiest) solution is to fix my mesh generation...
Thanks for answering
from pmp-library.
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.
BTW, I have the same issue, is there anyway to fix the "Complex mesh"?
from pmp-library.
Thank you very much !
from pmp-library.
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.
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.
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)
- Issue with STL reader HOT 3
- STL export does not guarantee positive vertex coordinates HOT 2
- remnants of submodules HOT 2
- missing faces in face circulator HOT 2
- Curious, is this topology a legitimate and supported halfedge data structure? HOT 2
- extract texture png file HOT 1
- Valence of faces are unexpectedly 0, affecting is_triangle_mesh() HOT 6
- Issue in hole filling algorithm HOT 1
- Parameterization with stitched edges
- Regression: Shader info logs are not reported on compile error HOT 3
- Keyboard modifier state is not tracked correctly when ImGui is capturing the keyboard HOT 2
- SurfaceMesh gives the error result HOT 1
- OpenGL 4.6 support? HOT 1
- In laplace_matrix function, Eigen SparseMatrix setFromTriplets gives "double free or corruption (out)" Error. HOT 5
- write_obj followed by read_obj crashes when the mesh has halfedge texcoords HOT 1
- Help Needed - How to use this in iOS Project
- Bug of Renderer::update_opengl_buffers? HOT 6
- Incorrect endianness in OFF file handling HOT 6
- WebGL demo apps broken with latest Emscripten release
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pmp-library.