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

Mike/lofting enums #461

Merged
merged 6 commits into from
Aug 26, 2024
Merged

Mike/lofting enums #461

merged 6 commits into from
Aug 26, 2024

Conversation

mlfarrell
Copy link
Contributor

No description provided.

@mlfarrell mlfarrell requested a review from adamchalmers August 16, 2024 19:36
Copy link

codecov bot commented Aug 16, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@324e4c3). Learn more about missing BASE report.

Files Patch % Lines
modeling-cmds/src/def_enum.rs 0.00% 1 Missing ⚠️
modeling-cmds/src/ok_response.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #461   +/-   ##
=======================================
  Coverage        ?   26.42%           
=======================================
  Files           ?       29           
  Lines           ?     1680           
  Branches        ?        0           
=======================================
  Hits            ?      444           
  Misses          ?     1236           
  Partials        ?        0           
Flag Coverage Δ
unittests 26.42% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

/// The closed section curves to create a lofted solid from.
/// Currently, these must be Solid2D's
pub section_ids: Vec<Uuid>,
/// Degree of the interpolation. Pass 2 for quadratic, and 3 for cubic interpolation in the V direction.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are these the only valid values? If so this should be an enum, like this playground

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, any value is valid except I suppose 0. So this should be kept as the integer I have

/// The response from the `Loft` command.
#[derive(Debug, Serialize, Deserialize, JsonSchema, ModelingCmdOutput)]
pub struct Loft {
///The UUID of the newly created solid loft.
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is a solid3d right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, but the reader should be able to infer that a solid loft is a solid 3d. there's no such thing as a solid lofted 2D in our engine

Co-authored-by: Adam Chalmers <adam.chalmers@zoo.dev>
@mlfarrell mlfarrell requested a review from adamchalmers August 19, 2024 16:48
@adamchalmers adamchalmers merged commit b14eccc into main Aug 26, 2024
8 checks passed
@adamchalmers adamchalmers deleted the mike/lofting-enums branch August 26, 2024 18:30
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