Unroll the surface of an Oloid

1 回表示 (過去 30 日間)
Felix Baul
Felix Baul 2021 年 7 月 20 日
回答済み: Tanmay Das 2021 年 9 月 15 日
Hi,
I want to unroll or unwrap the surface of an oloid.
I've got:
[v,t] = meshgrid(linspace(0,1,g),linspace(-120*pi/180,120*pi/180,s));
x = 1*cos(t)-v.*((1+cos(t)+cos(t).*cos(t))./(1+cos(t)));
y = sin(t)-v.*sin(t);
z = v.*(sqrt(1+2*cos(t))./(1+cos(t)));
X = [x,x];
Y = [y,y];
Z = [z,-z];
with s =2000 and g = 10 i get for X, Y and Z each a 2000x20 matrix.
I already calculated the the principal curvatures, surface and volume, but i have absolutly no idea how to unroll the surface in an 2d plot.

回答 (1 件)

Tanmay Das
Tanmay Das 2021 年 9 月 15 日
Hi,
Contourf projects the 3D plot into a 2D contour plot. You just need to add this line at the end of your code:
contourf(X,Y,Z);

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by