diff --git a/Examples/generateDistributions.cpp b/Examples/generateDistributions.cpp index 6f21952140b362a9c3b4be1a71ccf4f57ad5f3cd..3f780565d0d831cff9c44d37b5f05fb79d9e2133 100644 --- a/Examples/generateDistributions.cpp +++ b/Examples/generateDistributions.cpp @@ -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")){