-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(prt): convert to local coords in ternary cell method (#2122)
This reverts the switch to calculating the centroid via arithmetic mean for triangular cells in #2119 — the rest of the vertex velocity calculation assumes the polygonal definition of the centroid so that change was an error. A more robust way to avoid intermediate loss of precision is converting to local cell-local coordinates before applying the ternary cell method.
- Loading branch information
Showing
1 changed file
with
36 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters