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
{{ message }}
Repository navigation
CollisionDetection: Transform for Geometry instancing #47
// leftTransformation/rightTransformation transform the trees into a common coordinate system (e.g., Global)static std::vector<std::pair<TEntityID, TEntityID>> CollisionDetection(
OrthoTreeBoundingBox const& leftTree,
TContainer const& leftBoxes,
OrthoTreeBoundingBox const& rightTree,
TContainer const& rightBoxes,
std::optional<TTransformation> leftTransformation, = std::nullopt
std::optional<TTransformation> rightTransformation = std::nullopt
) noexcept;
std::vector<std::pair<TEntityID, TEntityID>> CollisionDetection(
TContainer const& boxes,
OrthoTreeBoundingBox const& otherTree,
TContainer const& otherBoxes,
std::optional<TTransformation> otherToThisTransformation = std::nullopt
) constnoexcept;
This may require extending the basic adaptor interface. InternalGeometryModule should be extended with the AABB IGM::Box transformation (OBB: IGM::ObjectBox).
AABB vs OBB: Separating Axis Theorem
Activity