Comments (8)
It would be neat to make a nice cython wrapper then set up cibuildwheel on: https://github.com/sp4cerat/Fast-Quadric-Mesh-Simplification
from trimesh.
Hey Shawn- at the moment Trimesh doesn't implement any simplification algorithms- I've been meaning to implement quadratic edge collapse decimation for a while, but never had time. If you want to implement it PR's would be accepted gladly :). In the meantime you're probably best off calling meshlabserver with subprocess.check_call or something.
from trimesh.
Hi Mike,
Thanks for your response! And the quadratic edge collapse decimation looks really interesting. I'll read more into it - I'm not sure whether the complexity is within my coding capabilities :P
And thank you also for your suggestion to use meshlabserver! I noticed that blender also has a decimate modifier, so I can try to see whether that's callable via command line.
Shawn
from trimesh.
This code sample looks like it does the meshlabserver trick: https://gist.github.com/awesomebytes/a3bc8729d0c1d0a9499172b9a77d2622
from trimesh.
thanks for the information, one question is: is there anyway to keep track of which faces are merged into one face? like if you have a labeled mesh, after decimating, how could you know the label for each new face?
Thanks!
from trimesh.
@xuefeng7: I think that would be pretty easy in a native numpy implementation but might be tough with a wrapper.
I referenced and consolidated this into the enhancements list and would be as always mega- happy if someone wants to PR this 😄 . Thanks for the report!
from trimesh.
I'm doing this via open3d pretty simply, I can pass on that code if it helps?
from trimesh.
Oh yeah actually the open3d
implementation of this is pretty good, and they appear to be distributing through wheels now. I added a thin wrapper to open3d in 8b9daf2 that seems to work well.
from trimesh.
Related Issues (20)
- Mesh Mesh Intersection (triangle-triangle)
- Medial Axis wrong after mesh.process(validate=True, merge_tex=True, merge_norm=True)
- Store name of solid in stl file
- Extract UV map as .png file HOT 1
- Remove embreex dependency for mac M1 HOT 1
- Breaking change in 3.10.8 causing materials not to load HOT 2
- Boolean union output problem HOT 1
- Normal consistency based closest point HOT 1
- Instability with normal generation with trimesh.creation.sweep_polygon
- Orientation guarantee of facet normals
- trimesh/examples/nearest.ipynb generates errors HOT 2
- Incorrect flipping of normals during convex hull calculation HOT 1
- ray.intersects_location is not working with a single ray vector HOT 3
- Mesh color changes after loading and storing HOT 5
- invalid-shift-base UndefinedBehaviorSanitizer error HOT 3
- How to export a scene to SVG? HOT 2
- USD(a,c,z) support
- Area of filled polygons in a 2D slice
- some vertices are missing when importing an OBJ file HOT 2
- How to convert mesh to voxels with a specific shape, say, 32x32x32 ?
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 trimesh.