mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 01:53:10 +02:00
Removed MSVC specific for each blocks
This commit is contained in:
parent
4627d2e7b5
commit
1facbbb844
1 changed files with 2 additions and 2 deletions
|
@ -203,7 +203,7 @@ vector<double> MassProperties::getMassProperties(){
|
|||
glm::mat3 globalProductInertia(0.0);
|
||||
|
||||
//Translate accumulated center of mass from each tetrahedron to mesh center of mass using parallel axis theorem
|
||||
for each (Tetrahedron tet in _tetrahedra){
|
||||
for(Tetrahedron tet : _tetrahedra){
|
||||
vector<double> tetMassProperties = tet.getVolumeAndInertia();
|
||||
volume += tetMassProperties.at(0); //volume
|
||||
centerOfMass += tet.getCentroid() * (float)tetMassProperties.at(0);
|
||||
|
@ -214,7 +214,7 @@ vector<double> MassProperties::getMassProperties(){
|
|||
}
|
||||
|
||||
//Translate the moment of inertia from each tetrahedron to mesh center of mass using parallel axis theorem
|
||||
for each (Tetrahedron tet in _tetrahedra){
|
||||
for(Tetrahedron tet : _tetrahedra){
|
||||
vector<double> tetMassProperties = tet.getVolumeAndInertia();
|
||||
glm::mat3 identity;
|
||||
glm::vec3 diff = _centerOfMass - tet.getCentroid();
|
||||
|
|
Loading…
Reference in a new issue