Skip to content

Conversation

Huangzizhou
Copy link
Collaborator

@Huangzizhou Huangzizhou commented Sep 26, 2025

Description

Implementation of Siggraph 2025 paper Geometric Contact Potential. The implementation includes the collision and friction potential, their gradient and Hessian.

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

Checklist

  • I have followed the project style guide
  • My code follows the clang-format style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Huangzizhou and others added 24 commits October 17, 2025 10:43
…CIL_SIZE instead of ELEMENT_SIZE; improve documentation for developer tools.
…ce test files; remove redundant includes and adjust order.
- Introduce `set_triplets` function for better triplet handling in `Potential`.
- Replace `maybe_parallel_for` with `tbb::parallel_for` and `tbb::parallel_for_each` for improved clarity.
- Update `hessian` method signature in `Potential` class to remove `virtual`.
- Remove unused operator overloads in `SparseMatrixCache` and clean up related tests.
- Remove const& double and int
- Rename DERIVATIVES_WITH_AUTODIFF to IPC_TOOLKIT_DEBUG_AUTODIFF
- Remove Eigen alias that already exist in Eigen
Copy link
Member

@zfergus zfergus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to merge now.

If you could write a small tutorial in docs/source/tutorials after this is merged, that would be very helpful. 🙏

In the future, I would like to make some structural changes to remove duplicated code. Hopefully, you can help me review them at that time.

@zfergus zfergus merged commit f369a94 into ipc-sim:main Oct 21, 2025
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants