You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is required for creating new mesh files from existing data. The process can be automated using glam for a more efficient and correct implementation than requiring people to compute their own bounding information. The functionality can probably be it's own crate and be combined with normals, tangents, and other functions ported from SFGraphics.utils.
bounding sphere
axis-aligned bounding box
oriented bounding box
The text was updated successfully, but these errors were encountered:
Oriented bounding boxes are currently using an approximation based off of the axis-aligned bounding box with an identity transform. This is the current behavior in StudioSB and produces a slightly less optimal solution than a version that allows rotation.
Oriented bounding boxes can be calculated using eigenvalue decomposition, but O(n^3) is too slow for meshes. A simple approach is to just rotate the AABB by the mesh transform. There are a number of efficient approximation algorithms if that approach ends up being too naive. https://doc.cgal.org/latest/Optimal_bounding_box/index.html
This is required for creating new mesh files from existing data. The process can be automated using glam for a more efficient and correct implementation than requiring people to compute their own bounding information. The functionality can probably be it's own crate and be combined with normals, tangents, and other functions ported from SFGraphics.utils.
The text was updated successfully, but these errors were encountered: