diff options
author | Sebastián Barschkis <sebbas@sebbas.org> | 2021-05-18 23:32:54 +0300 |
---|---|---|
committer | Sebastián Barschkis <sebbas@sebbas.org> | 2021-05-18 23:36:51 +0300 |
commit | 8dd43ac23ebef30a136e0f7f430a37bdc556e78c (patch) | |
tree | 8b73919dc8a2bdc4b46405349dad0c79ac9c47e9 /extern/mantaflow/preprocessed/plugin/meshplugins.cpp | |
parent | 1b909c726bdb76b8e9847a37339ac023bd26e580 (diff) |
Fluid: Updated Mantaflow source files
Includes update for OpenVDB file IO, i.e. fixes an issue with
compression flag combination that resulted in random segfaults.
Other changes: Cleanup and formatting.
Diffstat (limited to 'extern/mantaflow/preprocessed/plugin/meshplugins.cpp')
-rw-r--r-- | extern/mantaflow/preprocessed/plugin/meshplugins.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/extern/mantaflow/preprocessed/plugin/meshplugins.cpp b/extern/mantaflow/preprocessed/plugin/meshplugins.cpp index 043660db20b..cf315429d65 100644 --- a/extern/mantaflow/preprocessed/plugin/meshplugins.cpp +++ b/extern/mantaflow/preprocessed/plugin/meshplugins.cpp @@ -234,10 +234,10 @@ void subdivideMesh( normalize(ne2); // Real thisArea = sqrMag(cross(-e2,e0)); - // small angle approximation says sin(x) = arcsin(x) = x, - // arccos(x) = pi/2 - arcsin(x), - // cos(x) = dot(A,B), - // so angle is approximately 1 - dot(A,B). + // small angle approximation says sin(x) = arcsin(x) = x, + // arccos(x) = pi/2 - arcsin(x), + // cos(x) = dot(A,B), + // so angle is approximately 1 - dot(A,B). Real angle[3]; angle[0] = 1.0 - dot(ne0, -ne2); angle[1] = 1.0 - dot(ne1, -ne0); |