Skip to content

Commit

Permalink
Fixed bug with mass inside tgBoxInfo. Thanks to Guido T for the catch.
Browse files Browse the repository at this point in the history
  • Loading branch information
apsabelhaus committed Jan 5, 2017
1 parent 9b576c1 commit d6cf951
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/CMakeLists.txt
Expand Up @@ -17,9 +17,9 @@ subdirs(
yamlbuilder
)

add_definitions(
-Wall
)
#add_definitions(
# -Wall
#)

# Don't need to edit below this line.

Expand Down
2 changes: 1 addition & 1 deletion src/tgcreator/tgBoxInfo.cpp
Expand Up @@ -127,7 +127,7 @@ double tgBoxInfo::getMass() const
const double width = m_config.width;
const double height = m_config.height;
const double density = m_config.density;
const double volume = length * (width/2) * (height/2);
const double volume = length * (width*2) * (height*2);
return volume * density;
}

Expand Down

0 comments on commit d6cf951

Please sign in to comment.