필터 지우기
필터 지우기

How can I turn plotted line into a 3D surface?

조회 수: 10 (최근 30일)
Jeremy Scholze
Jeremy Scholze 2020년 8월 14일
답변: Ayush Gupta 2020년 9월 1일
I have a complex 3D line (spiral-esque) and would like to turn it into a surface. I was wondering if there is any function that might be able to do this or if there is an easier way than the path I'm currently taking (lofting a shape along the line). I'm very bad at coding and so this route isn't working too well. I really wish there was a feature that just converted a line thickness (LineWidth) into a solid or a surface. I'm open to any suggestions.
  댓글 수: 2
KSSV
KSSV 2020년 8월 14일
Do you have any pictorial example?
Jeremy Scholze
Jeremy Scholze 2020년 8월 14일
If you run this code, it should generate the 3D geometry I'm talking about. I just want to make all the lines surfaces.

댓글을 달려면 로그인하십시오.

답변 (1개)

Ayush Gupta
Ayush Gupta 2020년 9월 1일
The surf function can be used to our advantage here. Instead of plot command we can use the following command in the script to get the surface.
surf(X,Y,Z);
For documentation of surf function and exampled on how to use it, refer to this.

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by