Giter Site home page Giter Site logo

Comments (6)

sloriot avatar sloriot commented on June 1, 2024

@janetournois It seems to come from the projection step. The vertex 2459 is very close to a face in the input:
image
In the output, I guess it gets projected onto the face rather that the original vertex (probably because of the smoothing that moves it). I'm not sure we can do much in such a case. For sure adding that vertex as constrained vertex would fix the issue, but it's a "manual" fix.

As it seems the mesh was not combinatorially modified near that vertex, maybe the smoothing should only apply to modified regions?

from cgal.

ning-zelin avatar ning-zelin commented on June 1, 2024

But it still has self-intersections after setting do_projection to false.

  PMP::isotropic_remeshing(faces(mesh), 0.3, mesh,
                           CGAL::parameters::number_of_iterations(10)
                                            .protect_constraints(true).do_project(false)); 

from cgal.

sloriot avatar sloriot commented on June 1, 2024

As I tried to say, I guess that the smoothing moves the vertex across the face and the projection put it on the face.

from cgal.

sloriot avatar sloriot commented on June 1, 2024

You can try disabling the smoothing

from cgal.

ning-zelin avatar ning-zelin commented on June 1, 2024

As I tried to say, I guess that the smoothing moves the vertex across the face and the projection put it on the face.

Thanks. I set number_of_relaxation_steps(0), and the problem was solved.

from cgal.

ning-zelin avatar ning-zelin commented on June 1, 2024

As I tried to say, I guess that the smoothing moves the vertex across the face and the projection put it on the face.

Thanks. I set number_of_relaxation_steps(0), and the problem was solved.

Thank you very much for your assistance. I conducted further tests, and although probability of occurrence is less, it still doesn't resolve all cases.

  PMP::isotropic_remeshing(faces(merge_mesh), 0.3, merge_mesh,
                           CGAL::parameters::number_of_iterations(3).number_of_relaxation_steps(0).do_project(false) 

merged_43.zip

from cgal.

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.