Limits of sphere to obtain points
1 回表示 (過去 30 日間)
古いコメントを表示
Hello everyone!
I have multiple points (nodes). And i plot (plot3) a sphere with coordinates of center x0,y0 and z0 with radius r. I need to obtain the points (nodes) which are inside in sphere. How i can do this? How i can obtain the limits of curvature of sphere (in x,y and z)?
Thanks!
code:
[x,y,z] = sphere();
plot3(r*x+x0, r*y+y0, r*z+z0,'k-')
2 件のコメント
Walter Roberson
2015 年 5 月 10 日
What data structure do you have to describe the nodes? For example is it a struct array each element of which is a structure with elements 'x', 'y', 'z', each a scalar?
回答 (1 件)
Walter Roberson
2015 年 5 月 10 日
All of those nodes are on the outside of the sphere. None of them are inside the sphere.
参考
カテゴリ
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!