From bc966716352f793a77c5ee2f5b4b0a0c06691130 Mon Sep 17 00:00:00 2001 From: Jeff Lait Date: Mon, 24 Jul 2023 15:29:03 -0400 Subject: [PATCH] abs -> std::abs Signed-off-by: Jeff Lait --- openvdb/openvdb/tools/MeshToVolume.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openvdb/openvdb/tools/MeshToVolume.h b/openvdb/openvdb/tools/MeshToVolume.h index 9b07d96730..081170055b 100644 --- a/openvdb/openvdb/tools/MeshToVolume.h +++ b/openvdb/openvdb/tools/MeshToVolume.h @@ -3177,7 +3177,7 @@ floodFillLeafNode(tree::LeafNode& 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) { @@ -3213,7 +3213,7 @@ floodFillLeafNode(tree::LeafNode& 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});