Skip to content

WIP: TDF/OCAF bindings PoC#222

Draft
Ben-PH wants to merge 3 commits intobschwind:mainfrom
Ben-PH:Tdf_Poc
Draft

WIP: TDF/OCAF bindings PoC#222
Ben-PH wants to merge 3 commits intobschwind:mainfrom
Ben-PH:Tdf_Poc

Conversation

@Ben-PH
Copy link
Copy Markdown

@Ben-PH Ben-PH commented Apr 15, 2026

Adds initial Rust bindings for OCCT's TDF subsystem as groundwork for
TNaming-based feature history in CAD-L.

What's in:

  • TDF_Data construction and root label access (via HandleTdfData)
  • TDF_Label child creation and null check
  • TDF_Transaction open/commit/abort with delta return for undo
  • 'doc lifetime enforcement between TdfData and TdfLabel

What's missing before this is contribution-ready:

  • TNaming_Builder bindings (Generated, Modify, Delete, Select)
  • TdfDelta safe wrapper type (currently leaks UniquePtr)
  • Undo test against observable state change
  • build.rs link additions for TDF/TNaming libraries (currently implicit)

Disclaimer: Much of this work was done with a lot of heavy lifting coming from LLM assistance, but without LLM directly touching the codebase.

@Ben-PH Ben-PH marked this pull request as draft April 15, 2026 22:17
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