Giter VIP home page Giter VIP logo

Comments (6)

dsieger avatar dsieger commented on June 2, 2024 1

This is not a bug. You need to call garbage collection after deleting entities form the mesh. Please have a look at the docs.

from pmp-library.

mbotsch avatar mbotsch commented on June 2, 2024 1

I changed the Renderer class to be robust to deleted vertices and faces. Your code should now also work without garbage collection (but the latter is still recommended).

from pmp-library.

linbeijianbaoxia avatar linbeijianbaoxia commented on June 2, 2024

This is not a bug. You need to call garbage collection after deleting entities form the mesh. Please have a look at the docs.

Thank you very much for your help. Could you please share the link? I didn't find any reminder about calling garbage_collection() after delete_face() in the official tutorial. I know you are right, I just want to find the correct tutorial to avoid making similar mistakes again.

from pmp-library.

dsieger avatar dsieger commented on June 2, 2024

When elements are removed from the mesh due to topological changes, the member function pmp::SurfaceMesh::garbage_collection() has to be called in order to ensure the consistency of the data structure.

https://www.pmp-library.org/tutorial.html

from pmp-library.

linbeijianbaoxia avatar linbeijianbaoxia commented on June 2, 2024

When elements are removed from the mesh due to topological changes, the member function pmp::SurfaceMesh::garbage_collection() has to be called in order to ensure the consistency of the data structure.

https://www.pmp-library.org/tutorial.html

Thank you very much for your help; I apologize for my carelessness.

from pmp-library.

linbeijianbaoxia avatar linbeijianbaoxia commented on June 2, 2024

I changed the Renderer class to be robust to deleted vertices and faces. Your code should now also work without garbage collection (but the latter is still recommended).

Thanks very much for your work.

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.