Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

energy #350

Merged
merged 159 commits into from
Oct 29, 2023
Merged

energy #350

merged 159 commits into from
Oct 29, 2023

Conversation

yunfanzhou
Copy link
Collaborator

No description provided.

@yunfanzhou yunfanzhou marked this pull request as draft August 22, 2023 14:39
Copy link
Collaborator

@mtao mtao left a comment

Choose a reason for hiding this comment

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

some comments

src/wmtk/energy/Energy.cpp Outdated Show resolved Hide resolved
src/wmtk/energy/AMIPS.hpp Outdated Show resolved Hide resolved
src/wmtk/energy/AMIPS.cpp Outdated Show resolved Hide resolved
@mtao mtao mentioned this pull request Aug 29, 2023
// assume tuple is not a boundary edge
const Tuple current_v = tuple;
const Tuple other_v = m_mesh.switch_vertex(tuple);
long val0 = static_cast<long>(SimplicialComplex::vertex_one_ring(mesh(), current_v).size());
Copy link
Collaborator

Choose a reason for hiding this comment

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

this valence definition is very specific to collapse. The ValenceEnergy should just return the valence - this calculation for predicting the before/after only makes sense as an Invariant

@mtao mtao marked this pull request as ready for review October 29, 2023 02:15
@codecov
Copy link

codecov bot commented Oct 29, 2023

Codecov Report

Merging #350 (e875bb8) into main (8fb7418) will decrease coverage by 2.42%.
The diff coverage is 61.02%.

@@            Coverage Diff             @@
##             main     #350      +/-   ##
==========================================
- Coverage   85.81%   83.40%   -2.42%     
==========================================
  Files         187      213      +26     
  Lines        5401     5948     +547     
==========================================
+ Hits         4635     4961     +326     
- Misses        766      987     +221     
Flag Coverage Δ
wildmeshing 83.40% <61.02%> (-2.42%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...sotropic_remeshing/internal/IsotropicRemeshing.cpp 91.11% <100.00%> (+0.20%) ⬆️
src/wmtk/Scheduler.cpp 100.00% <100.00%> (ø)
src/wmtk/Scheduler.hpp 100.00% <100.00%> (ø)
src/wmtk/attribute/AttributeHandle.hpp 100.00% <ø> (ø)
src/wmtk/attribute/MutableAccessor.hpp 100.00% <ø> (ø)
src/wmtk/function/AMIPS.cpp 100.00% <100.00%> (ø)
src/wmtk/function/AMIPS2D.cpp 100.00% <100.00%> (ø)
src/wmtk/function/DifferentiableFunction.cpp 100.00% <100.00%> (ø)
src/wmtk/function/DifferentiableFunction.hpp 100.00% <100.00%> (ø)
src/wmtk/function/Function.cpp 100.00% <100.00%> (ø)
... and 34 more

... and 2 files with indirect coverage changes

@mtao mtao merged commit 5e4800c into main Oct 29, 2023
7 of 9 checks passed
@mtao mtao deleted the hackthon/yunfan/energy branch October 29, 2023 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

one_ring_energy Optimization via Differentiable Functions
5 participants