Commit fa7d0fe0 authored by Lukas Werner's avatar Lukas Werner
Browse files

Increase number of objects

parent 400dcc91
Pipeline #6799 failed with stage
in 198 minutes and 10 seconds
......@@ -163,6 +163,10 @@ void rayTrace (shared_ptr<BlockForest> forest, BlockDataID storageID) {
id_closest = 0;
for (auto blockIt = forest->begin(); blockIt != forest->end(); ++blockIt) {
// blockIt->getAABB();
/*const AABB& blockAabb = blockIt->getAABB();
if (!intersects(blockAabb, ray, t)) {
continue;
}*/
for (auto bodyIt = LocalBodyIterator::begin(*blockIt, storageID); bodyIt != LocalBodyIterator::end(); ++bodyIt) {
bool intersects = SingleCast<BodyTypeTuple, IntersectsFunctor, bool>::execute(*bodyIt, func);
......@@ -285,7 +289,7 @@ int main( int argc, char ** argv )
//testRayTracing();
//return 0;
real_t spacing = real_c(1.0);
real_t spacing = real_c(0.5);
real_t radius = real_c(0.4);
real_t vMax = real_c(1.0);
int simulationSteps = 10;
......@@ -301,7 +305,7 @@ int main( int argc, char ** argv )
// create forest
//! [BlockForest]
shared_ptr< BlockForest > forest = createBlockForest( AABB(0,0,0,20,20,20), // simulation domain
Vector3<uint_t>(2,2,2), // blocks in each direction
Vector3<uint_t>(3,3,3), // blocks in each direction
Vector3<bool>(false, false, false) // periodicity
);
......
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