Skip to content

Remove TreeBase readTopology() and writeTopology()#2180

Open
danrbailey wants to merge 1 commit intoAcademySoftwareFoundation:feature/iofrom
danrbailey:remove_treebase_io
Open

Remove TreeBase readTopology() and writeTopology()#2180
danrbailey wants to merge 1 commit intoAcademySoftwareFoundation:feature/iofrom
danrbailey:remove_treebase_io

Conversation

@danrbailey
Copy link
Copy Markdown
Contributor

This makes TreeBase::readTopology() and TreeBase::writeTopology() pure virtual and moves the old backwards-compatibility code (reading and writing int32_t(1)) into Tree::readTopology() and Tree::writeTopology(). This does not affect ABI because the vtable is the same regardless of whether there is an implementation for the base class or not.

Multi-buffer trees were never supported since OpenVDB was open-sourced. In theory this will affect anyone who is sub-classing TreeBase, however it is expected to be very rare if anyone is doing this at all and the fix is trivial (to include the same int32_t(1) code in their readTopology and writeTopology).

Signed-off-by: Dan Bailey <danbailey@ilm.com>
@danrbailey danrbailey requested a review from kmuseth as a code owner March 20, 2026 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant