How to create a 3D non convex surface (helical ribbon) with a set of points?

2 ビュー (過去 30 日間)
Nav R
Nav R 2020 年 5 月 20 日
コメント済み: darova 2020 年 5 月 20 日
I have a set of points which define a helical ribbon. I want to know how to create a helical surface from these set of points. I can't use Delaunay Triangulation as it connects all the points and produces a cylinder which I do not want (I need a helical ribbon). Since, it is a non convex shape, I cannot use convex hull funtion either.
Here is an example of a helical ribbon:

採用された回答

darova
darova 2020 年 5 月 20 日
Use surf
t = linspace(0,5*2*pi,100);
T = [t;t];
Z = [t;t+3]/5;
[X,Y] = pol2cart(T,T*0+3);
surf(X,Y,Z,'edgecolor','none')
light
axis vis3d equal
  2 件のコメント
Nav R
Nav R 2020 年 5 月 20 日
Thanks a lot! Can't believe it's this easy.
Can I also know how to create a 3 D helix which has thickness as well?
darova
darova 2020 年 5 月 20 日
Yes, use these equations of torus: LINK
Use meshgrid to create matrices for θ and φ

サインインしてコメントする。

その他の回答 (1 件)

Sean de Wolski
Sean de Wolski 2020 年 5 月 20 日
You could consider alphaShape. I'm not sure how it will handle the ribbon aspects though.
  1 件のコメント
Nav R
Nav R 2020 年 5 月 20 日
編集済み: Nav R 2020 年 5 月 20 日
I have tried using alphaShape already, but I'm not sure whether I used it right. I've adjusted the alpha radius to get this figure. It connect alternate points and creates a 'wider' helix which I don't want. It should have connected the nearby points to create a 'thinner' helix. I hope you understood.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDiscrete Data Plots についてさらに検索

タグ

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by