Calculating Sphere Cube Intersection

7 ビュー (過去 30 日間)
Alessandro
Alessandro 2014 年 5 月 7 日
Hello, I want to evaluate wether a given sphere intersects a cube/parallelepiped or not. A normal check on the distance from the 6 planes forming the 3-d cube will furnish false positives. My idea is to calculate the unit vector between the center of the cube and the center of the sphere, then the intersection between this direction and the cube, so I can check if this distance is greater than the sphere radius or not. But I do not know how to calculate the intersection between a given direction and a cube/parallelepiped. Thanks.

回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by