Merge branch 'master' of http://141.30.224.77/hodasemi/CGI
This commit is contained in:
commit
c07f511898
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ class Triangles
|
||||||
OpenMesh::Vec3f p2 = triangle.points[1];
|
OpenMesh::Vec3f p2 = triangle.points[1];
|
||||||
OpenMesh::Vec3f p3 = triangle.points[2];
|
OpenMesh::Vec3f p3 = triangle.points[2];
|
||||||
|
|
||||||
volume += OpenMesh::dot(p1, OpenMesh::cross(p2, p3));
|
volume += OpenMesh::dot(p1, OpenMesh::cross(p2, p3)) / 6.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
return volume;
|
return volume;
|
||||||
|
|
Loading…
Reference in a new issue