Giter Club home page Giter Club logo

Comments (5)

mbotsch avatar mbotsch commented on June 12, 2024

Could you please provide the mesh on which the adaptive remeshing fails?

from pmp-library.

saurabh64sant avatar saurabh64sant commented on June 12, 2024

Could you please provide the mesh on which the adaptive remeshing fails?

Here is the poly (*.ply) file on which the adaptive remeshing fails. I have changed its extension from *.ply to *.txt.
cube_outInt.txt

As you can see, it is a simple mesh. I use the above mesh for test purpose.

I create the pmp::SurfaceMesh object using the following snippet.

// copy surface mesh to pmp mesh
pmp::SurfaceMesh m;
vector<pmp::Vertex> vs;
for (auto& p : pts)
	vs.emplace_back(m.add_vertex(pmp::Point(p.x,p.y,p.z)));
	
for (auto& t : tri) {
	int v0 = t[0], v1 = t[1], v2 = t[2];
	m.add_triangle(vs[v0],vs[v1],vs[v2]);
}

Here, tri is a vector<vector> object while pts is a vector object, which contain the face information and the vertex information respectively.
Is the above code sufficient to correctly create SurfaceMesh object?

from pmp-library.

mbotsch avatar mbotsch commented on June 12, 2024

I'm sorry but I cannot reproduce the problem. Does the problem also occur when you use this mesh in the remeshing example app?

from pmp-library.

dsieger avatar dsieger commented on June 12, 2024

Can't reproduce this either, calling adaptive_remeshing with above parameters on the provided example mesh works fine.

Smells like a memory issue somewhere else in your program. Do you get the same error when compiling in Debug mode?

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.