Git Product home page Git Product logo

hole-filling-liepa's People

Contributors

russelmann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hole-filling-liepa's Issues

C++ Coding Example Usage?

I'm interested in calling this code from C++ code.

Could you please show a C++ coding example how to manually set and fill the vertices and faces variables?
I'm unfamiliar with Eigen library and how to initialize them remains unclear.

btw, this is a very obtuse way of storing and passing simple vector data.

 Eigen::MatrixX3d vertices;
 Eigen::MatrixX3i faces;
 
 // how to fill vertices ??
 // how to fill faces ??

 vector<Eigen::VectorXi> boundary_loops;
 boundary_loops = hole_filling_liepa::find_boundary_loops(faces);

 Eigen::MatrixX3i area_patch;
 area_patch = hole_filling_liepa::fill_hole_liepa(vertices, faces, boundary_loops[0], "area" );

Speed Issues

I was able to get the code compiled as C++, however it runs extremely slow!
I tested both "angle" and "area" methods, and both are equally slow.

I tried filling a mesh with a single hole of about 250 boundary vertices, and the code hangs in the fill_hole_liepa() function when it enters the 3 nested loops (j,i,m). Here it slows down significantly.

Do you have any suggestions on speeding up the code for large holes with many boundary vertices?
Are there any parameters that can be set to adjust the "coarseness" of the fill?

I would like to fill the hole with triangles as large as possible, and not necessarily fill them with small triangles.

Thanks

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.