Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support For Constant Basis In Splines #1298

Merged
merged 6 commits into from
Sep 15, 2022

Conversation

danieldresser-ie
Copy link
Contributor

@danieldresser-ie danieldresser-ie commented Sep 14, 2022

Adding support for "constant" basis for splines which creates stair step shapes. Turned up a few oddities in the solver and tests, but seems to be working fine now.

@johnhaddon
Copy link
Member

Note to self : don't merge this without retargeting it to RB-10.4.

@danieldresser-ie
Copy link
Contributor Author

Rebased onto RB-10.4

Copy link
Member

@johnhaddon johnhaddon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - might be worth addressing that one comment though (I don't think it changes the outcome, but it also doesn't seem to match our intentions as well as it could).

@@ -650,7 +675,7 @@ IECore::DataPtr loadSpline(
size_t n = std::min( positions.size(), values.size() );
for( size_t i = 0; i < n; ++i )
{
if( unduplicateEndPoints && ( i == 0 || i == n - 1 ) )
if( unduplicateEndPoints && ( i < unduplicateStartPoints || i >= n - unduplicateEndPoints ) )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can drop the unduplicateEndPoints && part?

@danieldresser-ie
Copy link
Contributor Author

Addressed comment.

@johnhaddon johnhaddon merged commit 17ed048 into ImageEngine:RB-10.4 Sep 15, 2022
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.

3 participants