필터 지우기
필터 지우기

how to get points inside a cone ?

조회 수: 3 (최근 30일)
yogesh jain
yogesh jain 2015년 11월 24일
댓글: M.S. Khan 2020년 8월 18일
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

채택된 답변

Walter Roberson
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
yogesh jain
yogesh jain 2016년 2월 19일
and if I know starting and ending points of cone , then ? Means it is not in generic way .
M.S. Khan
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 CenterFile Exchange에서 3-D Scene Control에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by