Commit 17252695 authored by Philippe Pébay's avatar Philippe Pébay
Browse files

Fixed array sizing error

Change-Id: I675bfd61cae43c66bdd5b6e684d4480a23a9ec52
parent 44e7c97c
......@@ -41,7 +41,7 @@ int TestHyperTreeGridBinary2D( int argc, char* argv[] )
actor->SetMapper( mapper.GetPointer() );
// Create camera
double bd[3];
double bd[6];
pd->GetBounds( bd );
vtkNew<vtkCamera> camera;
camera->SetClippingRange( 1., 100. );
......
......@@ -45,7 +45,7 @@ int TestHyperTreeGridTernary3DAxisCut( int argc, char* argv[] )
// Create camera
vtkHyperTreeGrid* ht = fractal->GetOutput();
double bd[3];
double bd[6];
ht->GetBounds( bd );
vtkNew<vtkCamera> camera;
camera->SetClippingRange( 1., 100. );
......
......@@ -41,7 +41,7 @@ int TestHyperTreeGridTernary3DGeometry( int argc, char* argv[] )
actor->SetMapper( mapper.GetPointer() );
// Create camera
double bd[3];
double bd[6];
pd->GetBounds( bd );
vtkNew<vtkCamera> camera;
camera->SetClippingRange( 1., 100. );
......
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