Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Direction of a cone and 3D point is inside or not on cone!!!!

1 回表示 (過去 30 日間)
Nuno
Nuno 2015 年 6 月 5 日
閉鎖済み: Walter Roberson 2015 年 6 月 5 日
Hello! I have the follow cone code:
r = 112.0; % radius
h = 100.0; % heigth
m = (h/r);
[R,A] = meshgrid(linspace(0,r,11),linspace(0,2*pi,41));
X = (R .* cos(A));
Y = (R .* sin(A));
Z = (m*R);
h=surf(X+185,Y+200,Z+210); % begin in the specific point
axis square
First of all, i don´t know if the cone was built correctly. I need create a cone with tip point in (x=185,y=200,z=210) but with a specific direction ( i need test to check what is the perfect), but i don't know how i change de direction (the normalized axis vector, pointing from the tip to the base).
Other thing is, how i check if a 3D point (with x,y and z coordinate) is inside or outside of cone?
Thanks for your attention

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by