Skip to content
Snippets Groups Projects
Commit bc723080 authored by Soeren Peters's avatar Soeren Peters
Browse files

- just change the nodes in BB to innertype, not all!

parent 6cb4128b
No related branches found
No related tags found
No related merge requests found
......@@ -94,12 +94,22 @@ public:
const real maxZ = max.z;
for (uint i = 0; i < grid->getSize(); i++)
grid->setNodeTo(i, InnerType);
real x, y, z;
for (z = minZ; z <= maxZ; z += grid->getDelta())
{
for (y = minY; y <= maxY; y += grid->getDelta())
{
for (x = minX; x <= maxX; x += grid->getDelta())
{
grid->setNodeTo(grid->transCoordToIndex(x, y, z), InnerType);
}
}
}
int counter = 0;
real x, y, z;
// Test line intersection
for (z = minZ; z <= maxZ; z += grid->getDelta())
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment