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

Delete Points using a Custom Filter

XMLWordPrintable

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

      Expose a free function in points/PointDelete.h that deletes based on a custom filter, currently you have to use the DeleteByFilterOp to achieve this which is behind an internal namespace. I suggest the following API:

      template <typename PointDataTreeT, typename FilterT>
      inline void delete(PointDataTreeT& pointsTree, const FilterT& filter, 
          bool invert = false, bool threaded = true);
      

      The invert toggle should use the new NotFilter to invert the filter and then call itself with invert set to false - OVDB-47. Probably this means calling an internal method to do the deletion.

            Unassigned Unassigned
            danrbailey danrbailey
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: