Changed Volume Routine, before was returning negative values
This commit is contained in:
parent
ce250c83a2
commit
f32fb12d03
vcg/complex/trimesh
|
@ -24,6 +24,9 @@
|
|||
History
|
||||
|
||||
$Log: not supported by cvs2svn $
|
||||
Revision 1.15 2005/10/03 16:00:08 rita_borgo
|
||||
Minor changes
|
||||
|
||||
Revision 1.14 2005/03/18 16:37:46 fiorin
|
||||
Minor changes
|
||||
|
||||
|
@ -272,8 +275,8 @@ ScalarType Volume()
|
|||
CoordType pk = (*fi).P(k);
|
||||
|
||||
|
||||
V += (pj* T )*(pj*N)*(pj*B);
|
||||
V += (pk*(-T))*(pk*N)*(pk*B);
|
||||
V += (pk* T )*(pk*N)*(pk*B);
|
||||
V += (pj*(-T))*(pj*N)*(pj*B);
|
||||
}
|
||||
}
|
||||
return V/6.0;
|
||||
|
|
Loading…
Reference in New Issue