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

Face get center API #330

Merged
merged 4 commits into from May 13, 2024
Merged

Face get center API #330

merged 4 commits into from May 13, 2024

Conversation

mlfarrell
Copy link
Contributor

this diff is going to look screwed up due to me having to reverse jump back to get around pre-emptive release of 0.2.24.

mlfarrell and others added 3 commits May 10, 2024 12:08
* add isometric struct

* adjust nomenclature

---------

Co-authored-by: gserena <serena@zoo.dev>
@mlfarrell mlfarrell requested a review from jessfraz May 10, 2024 19:14
#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema, ExecutionPlanFromMemory, ModelingCmdVariant)]
pub struct FaceGetCenter {
/// Which face is being queried.
pub object_id: Uuid,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't this be "face_id" as you're not querying an overall object, you're querying one specific face of an object?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

opted for consistency, see FaceGetGradient + FaceGetPosition which already use object_id

@@ -951,6 +958,14 @@ define_modeling_cmd_enum! {
pub padding: f32,
}

/// Fit the view to the scene with an isometric view.
#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema, ExecutionPlanFromMemory, ModelingCmdVariantEmpty)]
pub struct ViewIsometric {
Copy link
Collaborator

Choose a reason for hiding this comment

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

So this zooms out to fill all objects within the scene?

Copy link
Contributor Author

@mlfarrell mlfarrell May 13, 2024

Choose a reason for hiding this comment

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

this was part of Serena's prior PR that already has merged into main. again, read my top comment about the diff.

@mlfarrell
Copy link
Contributor Author

k, main merged, diff cleaned up so its more clear.

Copy link

codecov bot commented May 13, 2024

Codecov Report

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

❗ No coverage uploaded for pull request base (main@de93718). Click here to learn what that means.

Files Patch % Lines
modeling-cmds/src/def_enum.rs 0.00% 3 Missing ⚠️
modeling-cmds/src/ok_response.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #330   +/-   ##
=======================================
  Coverage        ?   54.99%           
=======================================
  Files           ?       51           
  Lines           ?     5821           
  Branches        ?        0           
=======================================
  Hits            ?     3201           
  Misses          ?     2620           
  Partials        ?        0           
Flag Coverage Δ
unittests 54.99% <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.

@mlfarrell mlfarrell merged commit 1dfc7af into main May 13, 2024
9 checks passed
@mlfarrell mlfarrell deleted the mike/face-get-center-2 branch May 13, 2024 18:12
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.

None yet

4 participants