We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently OpenVDB supports the following SDF operations:
SDF Union: min(d1, d2)
min(d1, d2)
SDF Intersection: max(d1, d2)
max(d1, d2)
SDF Difference (usually named SDF Subtraction): max(-d1, d2)
max(-d1, d2)
However, it doesn't support the XOR operation described by Inigo Quilez: max(min(d1, d2), -max(d1, d2))
max(min(d1, d2), -max(d1, d2))
This operation finds regions where the sign mismatches.
It would be nice to include all standard SDF operations in OpenVDB.
The text was updated successfully, but these errors were encountered:
As a workaround you can find the symmetric difference with
csgUnionCopy(csgDifferenceCopy(grid1, grid2), csgDifferenceCopy(grid2, grid1))
or
csgDifferenceCopy(csgUnionCopy(grid1, grid2), csgIntersectionCopy(grid1, grid2))
For an in-place workaround, this might be the most efficient:
gridint = csgIntersectionCopy(grid1, grid2); csgUnion(grid1, grid2); csgDifference(grid1, gridint);
Sorry, something went wrong.
No branches or pull requests
Currently OpenVDB supports the following SDF operations:
SDF Union:
min(d1, d2)
SDF Intersection:
max(d1, d2)
SDF Difference (usually named SDF Subtraction):
max(-d1, d2)
However, it doesn't support the XOR operation described by Inigo Quilez:
max(min(d1, d2), -max(d1, d2))
This operation finds regions where the sign mismatches.
It would be nice to include all standard SDF operations in OpenVDB.
The text was updated successfully, but these errors were encountered: