Code Monkey home page Code Monkey logo

Comments (8)

mikedh avatar mikedh commented on May 29, 2024 2

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.

mikedh avatar mikedh commented on May 29, 2024

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.

yw5aj avatar yw5aj commented on May 29, 2024

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.

Marviel avatar Marviel commented on May 29, 2024

This code sample looks like it does the meshlabserver trick: https://gist.github.com/awesomebytes/a3bc8729d0c1d0a9499172b9a77d2622

from trimesh.

xuefeng7 avatar xuefeng7 commented on May 29, 2024

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.

mikedh avatar mikedh commented on May 29, 2024

@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.

jonnymaserati avatar jonnymaserati commented on May 29, 2024

I'm doing this via open3d pretty simply, I can pass on that code if it helps?

from trimesh.

mikedh avatar mikedh commented on May 29, 2024

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)

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.