Radius of the sphere inscribed at the corner of an irregular polyhedron
3 views (last 30 days)
Show older comments
This is more about Mathematics than Matlab, but I am coding using Matlab. I appreciate any kind of help.
I am looking for the mathematical formula to calculate the radius of a sphere that can be inscribed at the corner of an irregular polyhedron ? There can be several radius, but the sphere should not protrude out of the polyhedron. In 2D it is easy to implement as only two edges are associated with a vertex. The radius is purely based on the corner angle. But I need for 3D where the corner vertex has n number of faces and the angles are not all equal.
Thank you in advance, Sincerely, Sumana
0 Comments
Accepted Answer
Image Analyst
on 18 Jul 2016
You can make a solid out of your vertex definitions, then you can use bwdist() to get the distance transform. The max of the distance transform is the radius of the largest sphere that will fit into your polyhedron.
11 Comments
More Answers (0)
See Also
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!