Skip to content

Commit

Permalink
abs -> std::abs
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Lait <jlait@andorra.sidefx.com>
  • Loading branch information
jmlait committed Jul 24, 2023
1 parent 95b1a43 commit bc96671
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openvdb/openvdb/tools/MeshToVolume.h
Original file line number Diff line number Diff line change
Expand Up @@ -3177,7 +3177,7 @@ floodFillLeafNode(tree::LeafNode<T,Log2Dim>& leafNode, const InteriorTest& inter

// We do not assign anything for voxel close to the mesh
// This condition is aligned with the condition in traceVoxelLine
if (abs(value) <= 0.75) {
if (std::abs(value) <= 0.75) {
voxelState[offset] = NOT_ASSIGNED;
} else if (voxelState[offset] == NOT_VISITED) {

Expand Down Expand Up @@ -3213,7 +3213,7 @@ floodFillLeafNode(tree::LeafNode<T,Log2Dim>& leafNode, const InteriorTest& inter
(dimIdx < (int)DIM - 1) &&
(voxelState[neighOff] == NOT_VISITED)) {

if (abs(leafNode.getValue(neighOff)) <= 0.75) {
if (std::abs(leafNode.getValue(neighOff)) <= 0.75) {
voxelState[neighOff] = NOT_ASSIGNED;
} else {
offsetStack.push_back({neighOff, state});
Expand Down

0 comments on commit bc96671

Please sign in to comment.