Skip to content

Commit e47a401

Browse files
VDBObject : Document that metadata() is deprecated
1 parent dbc7089 commit e47a401

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Changes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ API
1010
---
1111

1212
- SConstruct : Install "private" headers.
13+
- VDBObject : Marked metadata() as deprecated
1314

1415
10.5.15.1 (relative to 10.5.15.0)
1516
=========

include/IECoreVDB/VDBObject.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ class IECOREVDB_API VDBObject : public IECoreScene::VisibleRenderable
8888
Imath::Box3f bound() const override;
8989
void render( IECoreScene::Renderer *renderer ) const override;
9090

91+
// \deprecated
92+
// Not threadsafe ( it computes statistics if not present and stores them on the grids ).
93+
// Instead, use the VDB api, for example:
94+
// findGrid( name )->beginMeta() to iterate the metadata,
95+
// or
96+
// findGrid( name )->evalActiveVoxelBoundingBox() or activeVoxelCount() to compute statistics
9197
IECore::CompoundObjectPtr metadata( const std::string &name );
9298

9399
//! Are the grids in this VDBObject unmodified from the vdb file in filename?

0 commit comments

Comments
 (0)