Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
b7ec615f
Commit
b7ec615f
authored
Jun 16, 2011
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
AMR/vtkAMREnzoReader.cxx
View file @
b7ec615f
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment