GithubHelp home page GithubHelp logo

wildmeshing / wildmeshing-toolkit Goto Github PK

View Code? Open in Web Editor NEW
100.0 10.0 14.0 348.85 MB

Toolkit for Meshing in the Wild

License: Other

C++ 95.47% CMake 2.84% Shell 0.28% Python 0.22% Jupyter Notebook 1.19%
remeshing siggraph-asia-2022

wildmeshing-toolkit's People

Contributors

ahighmoon avatar daniel-zint avatar danielepanozzo avatar jcdai avatar jdumas avatar jiangzhongshi avatar mtao avatar qnzhou avatar rachael-wang avatar rjc8237 avatar slomp avatar teseoch avatar yixin-hu avatar yunfanzhou avatar zfergus avatar zhouyuan-chen avatar zlyfunction avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wildmeshing-toolkit's Issues

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.

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.

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.

Additional Test for Collapse

Additional Test for Collapse:

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

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?

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

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.

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

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.