Commit b8b3ae88 authored by COULAUD Olivier's avatar COULAUD Olivier

Fix bug with cuboid

parent 42c991d5
......@@ -167,7 +167,7 @@ int main(int argc, char ** argv){
std::stringstream ss(aspectRatio); ss >>A >> B >> C ;
unifRandonPointsOnCube(NbPoints, A,B,C,particles) ;
BoxWith = FMath::Max(A,FMath::Max(B,C) );
FReal halfBW = BoxWith;
FReal halfBW = BoxWith*0.5;
Centre.setPosition(halfBW,halfBW,halfBW);
}
else if(FParameters::existParameter(argc, argv, "-unitSphere")){
......
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