wildmeshing / wildmeshing-toolkit Goto Github PK
View Code? Open in Web Editor NEWToolkit for Meshing in the Wild
License: Other
Toolkit for Meshing in the Wild
License: Other
run ./app_unit_tests triangle-insertion-parallel on bunny to reproduce the error. (code in branch optimize-triangle-insertion)
wildmeshing-toolkit/src/TetMesh.h
Lines 255 to 258 in 93d25d4
This function indicates the number of tetrahedra, but not accounting for the removed ones, maybe we need a new name.
This is more similar to capacity
in std language.
Try to match paper results.
Also, the armadillo starts from CGAL.
they all should take the mesh as input and eid is wrong
This is strange behavior, some bug may lie inside.
see also, igl::decimate
, and maybe also compare with its result.
need to check boundary
in ShortestEdgeCollapse.cpp:51-52
The following test would fail. Switching tet changes the edge it points to.
TEST_CASE("switch_face_tet", "[test_tuple]")
{
TetMesh m;
m.init(5, {{{0, 1, 2, 3}}, {{0, 1, 4, 2}}, {{0, 1, 3, 4}}});
auto e = m.tuple_from_edge(0, 3);
spdlog::critical("edge {} {} {} {}", e.tid(), e.fid(m), e.eid(m), e.vid());
e = e.switch_face(m);
spdlog::critical("edge {} ({}) {} {}", e.tid(), e.fid(m), e.eid(m), e.vid());
auto edge0 = e.eid(m);
e = e.switch_tetrahedron(m).value();
spdlog::critical("edge ({}) {} {} {}", e.tid(), e.fid(m), e.eid(m), e.vid());
auto edge1 = e.eid(m);
REQUIRE(edge0 == edge1);
}
The output is as follows, note that the last line changes the id of the edge from 3 to 0.
[2021-12-14 17:36:24.441] [critical] edge 0 1 3 0
[2021-12-14 17:36:24.442] [critical] edge 0 (2) 3 0
[2021-12-14 17:36:24.442] [critical] edge (2) 2 0 0
remove:
cout
from testinsertion_update_surface_tag
add_tet_centroid
, maybe not removeLet's try to have only tests that take < 1 second. @yfzhou42 could you please shorten all the tests for the 2D operations?
Additional Test for Collapse:
We need more tests on real meshes, like bunny.
This requires a system like igl_download_tutorial_data
to be in place to avoid additional burden on git.
The name for the timestamp/hash is different in trimesh and tetmesh. We need to decide on one and update it accordingly.
Currently not tested.
in ShortestEdgeCollapse.cpp:51-52
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.