Commit b7ec615f authored by George Zagaris's avatar George Zagaris
Browse files

BUGFIX: Fix typo when computing grid spacing

Fixed typo leading to miscalculation of the
grid spacing of the metadata.
parent 968b54fe
......@@ -346,7 +346,7 @@ int vtkAMREnzoReader::FillMetaData( vtkHierarchicalBoxDataSet *metadata )
blockMin[j] = theBlock.MinBounds[j];
blockMax[j] = theBlock.MaxBounds[j];
spacings[j] = (theBlock.BlockNodeDimensions[j] > 1)?
(blockMax[j]-blockMin[j]/(theBlock.BlockNodeDimensions[j]-1.0)):1.0;
(blockMax[j]-blockMin[j])/(theBlock.BlockNodeDimensions[j]-1.0):1.0;
}
vtkUniformGrid *ug = vtkUniformGrid::New();
......
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