Skip to content

Radius compensation code simplification#3978

Merged
Grantim merged 1 commit intomasterfrom
Radius_compensation_code_simplification
Jan 16, 2025
Merged

Radius compensation code simplification#3978
Grantim merged 1 commit intomasterfrom
Radius_compensation_code_simplification

Conversation

@Grantim
Copy link
Contributor

@Grantim Grantim commented Jan 16, 2025

No description provided.

@Grantim Grantim requested a review from Fedr January 16, 2025 13:08
@Grantim Grantim changed the title Radius_compensation_code_simplification Radius compensation code simplification Jan 16, 2025
Comment on lines +411 to +427
auto res = c.init();
if ( !res.has_value() )
return res;

res = c.calcCompensations();
if ( !res.has_value() )
return res;

res = c.compensateDistanceMap();
if ( !res.has_value() )
return res;

res = c.applyCompensation();
if ( !res.has_value() )
return res;

return c.postprocessMesh();
Copy link
Contributor

Choose a reason for hiding this comment

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

you can use expected::and_then to simplify it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

dont want to decorate it with lambdas

@Grantim Grantim merged commit bc2a74e into master Jan 16, 2025
@Grantim Grantim deleted the Radius_compensation_code_simplification branch January 16, 2025 13:49
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