D
D
Dragon12020-11-19 12:15:57
MATLAB
Dragon1, 2020-11-19 12:15:57

Why is some part of the surface not being rendered?

5fb63757ecf6d188158979.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nuta_nu, 2021-01-08
@Dragon1

You have a segment more than will fit up to 360 degrees. You can either lengthen the rotation (the ends will kind of add up)

[u,t] = meshgrid(0.01:0.1:4,0:0.01:2.1*pi);
disp(t)
x = u.*sin(t);
y = u.*cos(t);
z = u;
surf(x,y,z)
xlabel x, ylabel y

or increase the sample
[u,t] = meshgrid(0.01:0.1:4,0:0.025:2*pi);
disp(t)
x = u.*sin(t);
y = u.*cos(t);
z = u;
surf(x,y,z)
xlabel x, ylabel y

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question