Commit 744dbea5 authored by Kirill Terekhov's avatar Kirill Terekhov
Browse files

Fix to geometry

parent 9531c0cc
......@@ -1346,7 +1346,7 @@ namespace INMOST
for(int q = 0; q < 3; ++q)
{
x[q] += at*(v0[q]+v1[q]+v2[q])/3.0;
c[q] += at*nt[q]*(pow(v0[q]+v1[q],2)+pow(v1[q]+v2[q],2)+pow(v2[q]+v0[q],2))/24.0;
c[q] += s*nt[q]*(pow(v0[q]+v1[q],2)+pow(v1[q]+v2[q],2)+pow(v2[q]+v0[q],2))/24.0;
}
a += at;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment