how to get points inside a cone ?
2 ビュー (過去 30 日間)
古いコメントを表示
Hello all , I have a conical section which is hollow and having variable radius and height . how to get all points inside the cone so that I can make it filled cone . I used this code -
r1=input('enter radius');
r=r1:-0.5:0;
[xc,yc,zc] = cylinder(r);
h=input('enter ht');
zc=zc*h;
figure(1)
surf(xc,yc,zc,'Facecolor','w');
grid on
axis equal
0 件のコメント
採用された回答
Walter Roberson
2015 年 11 月 24 日
There are an infinite number of points inside a cone.
To make a 3D object "filled", normally you just use opaque faces to draw it.
6 件のコメント
M.S. Khan
2020 年 8 月 18 日
Hi Dr. Walter Roberson, can i consider your code as a point cloud of the cone.
Regards,
M. Shafiq
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Lighting, Transparency, and Shading についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!