Giter VIP home page Giter VIP logo

Comments (4)

g1n0st avatar g1n0st commented on July 16, 2024 1

Sorry for the late reply. I updated to e95b38e and found the oriented V-V works well with my application. Thank you for your excellent work and help!

from rxmesh.

Ahdhn avatar Ahdhn commented on July 16, 2024

I have not implemented such "compound" queries where multiple queries (e.g., EF, EV, FV in your case) are needed to be computed and be resident in shared memory. But it is on my roadmap!

However, from the code snippet above, I would recommend restructuring your computation such that it would be vertex-centric instead of edge-centric. Doing so, the code would just loop over the vertex (i.e., v1's) one ring. At each step, you would have access to v2. If the query is marked as "oriented" here, you could additionally have access to the vertex before and after v2 i.e., v3 and v4. You would also need to mark the query as "oriented" in prepare_launch_box.

An example of the above suggestion can be found in the mcf_rxmesh_kernel.cuh
where p_id is the center vertex we iterate over q_id is the previous vertex in p_id's one-ring, r_id is the current one-ring vertex, and s_id is the next vertex after r_id.

Hope this is helpful! Please let me know if you have more questions.

from rxmesh.

g1n0st avatar g1n0st commented on July 16, 2024

Hi,

Thank you for your suggestion about reformulating the computation to being vertex-centric and using the V-V relation instead of E-F-V. I think it's feasible as long as using oriented=True to ensure the order of the neighborhood vertices.

However, I find that the oriented V-V query required the input mesh without boundary:

EXPECT_TRUE(rxmesh.is_closed())
<< " Can't generate oriented VV for input with boundaries";

But it's not the case in my application. I am currently doing cloth simulation where meshes have boundaries. Do you have any idea for this? Any support would be much appreciated.

from rxmesh.

Ahdhn avatar Ahdhn commented on July 16, 2024

I have just pushed e95b38e a fix to allow oriented V-V (and V-E) on input mesh with boundaries (with a unit test). Please let me know if you need anything else to get your cloth simulation working :)

from rxmesh.

Related Issues (8)

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.