Fit sphere into mesh which has a spherical shape
5 ビュー (過去 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!