Skip to content

Commit

Permalink
Update arap.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hjessmith authored Jun 11, 2024
1 parent 97366d6 commit c5a176d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion animated_drawings/model/arap.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ARAP():
Then, given new positions for the pins, find new vertex locations (v' in V')
such that the edges (e' in E') are as similar as possible, in a least squares sense, to the original edges (e in E).
Translation and rotation aren't penalized, but edge scaling is.
Not allowing rotation makes this tricky, as edges are directed vectors.
Not penalizing rotation makes this tricky, as edges are directed vectors.
Solution involves finding vertex locations twice. First, you do so while allowing both rotation and scaling to be free.
Then you collect the per-edge rotation transforms found by this solution.
Expand Down

0 comments on commit c5a176d

Please sign in to comment.