Fit sphere into mesh which has a spherical shape

5 ビュー (過去 30 日間)
Jasmine Ruegg
Jasmine Ruegg 2022 年 1 月 11 日
編集済み: Matt J 2022 年 1 月 11 日
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 Center および File ExchangeSurface 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