Uploaded image for project: 'OpenVDB'
  1. OpenVDB
  2. OVDB-115

Erode voxels calling pruneLevelSet

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • None
    • Core
    • None

      I'd like to topologically erode the active voxels of mask grids (non level set grids) without changing their values or deleting off nodes. Unfortunately erodeVoxels calls pruneLevelSet by default. It also has no visibility on the grid classification (whether the tree represents a level set or not) so perhaps shouldn't be calling this anyway. Two issues:

      • pruneLevelSet will always run, removing nodes if it's not desired
      • erodeVoxels will fail if the background value is negative

      We could expose a prune=true argument to disable the pruning, however still won't be able to call the correct prune method due to the lack of grid class information. Perhaps a new method is required, similar to dilateActiveValues.

            nna nna
            nna nna
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: