russelmann / hole-filling-liepa Goto Github PK
View Code? Open in Web Editor NEWImplementation of coarse hole filling algorithm for triangle meshes by P. Liepa.
License: MIT License
Implementation of coarse hole filling algorithm for triangle meshes by P. Liepa.
License: MIT License
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" );
I tried to run this code on jupyter and it gave me the shown error.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.