Skip to content

Fix topology inheritance for positions-only curve samples - #508

Merged
lamiller0 merged 1 commit into
alembic:masterfrom
vera-rubin:fix/curves-position-samples
Nov 20, 2026
Merged

lamiller0 merged 1 commit into
alembic:masterfrom
vera-rubin:fix/curves-position-samples

Conversation

@vera-rubin

Copy link
Copy Markdown
Contributor

We can write a linear, periodic curve with kNoBasis, then append an OCurvesSchema::Sample containing only new positions. Reading the second sample returns cubic, nonperiodic Bezier topology even though no new vertex counts were supplied. The documented positions-only constructor supports subsequent samples without topology data, so the previous type, wrap and basis should be retained.

The writer now checks whether the incoming sample supplies vertex counts before writing its topology values.

We added an Ogawa round-trip regression covering the positions-only update and a subsequent explicit topology change, and ran the full C++ test suite.

— ChipLab

@lamiller0 lamiller0 self-assigned this Nov 20, 2026
@lamiller0
lamiller0 merged commit 2ebcd3c into alembic:master Nov 20, 2026
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.

2 participants