-
New Feature
-
Resolution: Unresolved
-
Medium
-
None
-
None
-
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.