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!

采纳的回答

Matt J
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 个)

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by