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

Array Grids (Fixed Sized Scalar Array ValueTypes)

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • None
    • Core
    • None

      This ticket is to investigate what would be required to support a grid with arbitrarily sized scalar (or even templated type) arrays as the value buffers in tiles/voxels. There's currently no extended brief for this work. Possible examples:

      auto a = openvdb::Vec3fGrid::create({0,0,0}); // standard vec3f grid
      auto b = openvdb::ArrayGrid<float>::create({0,0,0}, 3); // array runtime sized, arbitrary type
      auto c = openvdb::ArrayGrid<float[3]>::create({0,0,0}); // compile tile sized, arbitrary type
      auto d = openvdb::FloatGrid::create(0, 3); // leveraging existing types, new argument represented buffer strides
      

      Note the compile time example is listed for completeness, but we would most likely be wanting a runtime solution to allow for general support without polluting the type interface. In all runtime cases, new data would need to be stored somewhere to infer the array size.

            Unassigned Unassigned
            nna nna
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: