Fit sphere into mesh which has a spherical shape
4 次查看(过去 30 天)
显示 更早的评论
Hi , I have a segmented bone with a spherical shape at one end and would like to fit a sphere into that mesh to get the center. Does someone know how I can fit a spher (size according to the spherical shape of the bone) into my mesh? The bone is a long bone which means, that only one end is a sphere and the rest goes to the other end of the bone (see picture for better understanding). Thanks for any help!
0 个评论
采纳的回答
Matt J
2022-1-11
编辑:Matt J
2022-1-11
Isolate the end caps of the bone by finding the triangles in the mesh whose surface normals [nx,ny,nz] point strongly upward (nz>threshold). Then do a sphere fit to the points belonging to those triangles. For the latter, you can use sphericalFit(), available at
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!