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 bounds min,max #978

Open
wants to merge 2 commits into
base: devel
Choose a base branch
from
Open

add bounds min,max #978

wants to merge 2 commits into from

Conversation

sinkingsugar
Copy link
Member

Description

Test plan

shards/gfx/gltf/gltf.cpp Outdated Show resolved Hide resolved
shards/gfx/gltf/gltf.cpp Outdated Show resolved Hide resolved
return linalg::mul(linalg::mul(linalg::mul(matrix, T), R), S);
}

void computeBoundingBox(const tinygltf::Node &node, const tinygltf::Model &model, linalg::vec<double, 3> &global_min,
Copy link
Member

Choose a reason for hiding this comment

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

Slight waste in case a model reuses a lot of meshes, you could cache bounds per mesh and just retransform them later

Copy link
Member Author

Choose a reason for hiding this comment

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

ah cos it goes by node hmmm are you collecting meshes somewhere already?

Copy link
Member

Choose a reason for hiding this comment

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

there's a bunch of maps in the Loader structure

Copy link

codecov bot commented May 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.21%. Comparing base (103d99c) to head (9b00ded).

Additional details and impacted files
@@            Coverage Diff             @@
##            devel     #978      +/-   ##
==========================================
+ Coverage   80.18%   80.21%   +0.03%     
==========================================
  Files         335      335              
  Lines       53786    53864      +78     
==========================================
+ Hits        43129    43208      +79     
+ Misses      10657    10656       -1     

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

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