GithubHelp home page GithubHelp logo

wildmeshing / wildmeshing-toolkit Goto Github PK

View Code? Open in Web Editor NEW
101.0 11.0 15.0 367.98 MB

Toolkit for Meshing in the Wild

License: Other

C++ 96.07% CMake 2.56% Shell 0.23% Python 0.18% Jupyter Notebook 0.97%
remeshing siggraph-asia-2022

wildmeshing-toolkit's Issues

Confusing 'n_tets'

/**
* Number of tetra in the mesh
*/
size_t n_tets() const { return m_tet_connectivity.size(); }

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.

Problem in `ShortestEdgeCollapse`

in ShortestEdgeCollapse.cpp:51-52

  • Do not use vid to query. Use tuple instead.
  • Get one ring edges return only the connected ones, that is not enough. All the previous ones from the tet are invalid now, and needs renewal.

Bug in `switch_tetrahedron`?

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

Todos for triangle insertion

remove:

  • cout from test
  • insertion_update_surface_tag
  • add_tet_centroid, maybe not remove
  • remove tringle soup and change into trimesh
  • add mapping for everything else but faces as it is already there

The 2D tests take too long

Let'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

Additional Test for Collapse:

  • edges on the boundary, and internal edges connecting the boundary
  • test timestamp and revert operations

Add more mesh data in the test

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.

Timestamp or Hash?

The name for the timestamp/hash is different in trimesh and tetmesh. We need to decide on one and update it accordingly.

Problem in `ShortestEdgeCollapse`

in ShortestEdgeCollapse.cpp:51-52

  • Do not use vid to query. Use tuple instead.
  • Get one ring edges return only the connected ones, that is not enough. All the previous ones from the tet are invalid now, and needs renewal.

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.