Skip to content

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 danieldresser-ie changed the base branch from main to RB-10.4 September 14, 2022 16:23
@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