How can I create a triangulated sphere using 'isosurface' function of MATLAB

조회 수: 2 (최근 30일)
32sthide
32sthide 2013년 4월 2일
down vote favorite How can I create a Triangulated sphere with faces of triangles with the same area each one.
I want something like this,
and I searched and I saw I could use the function isosurfaceof MATLAB, but the triangles are not equal and the are essestially squares divided in two with the square diagonal.
here's my code:
>> [X,Y,Z] = meshgrid(-10:10,-10:10,-10:10);
>> V = sqrt(X.^2+Y.^2+Z.^2);
>> fv = isosurface(X,Y,Z,V)
>> p = patch(fv);
>> set(p,'EdgeColor','g')
and the result is below:
  댓글 수: 1
Omid Adljuy
Omid Adljuy 2013년 4월 5일
편집: Omid Adljuy 2013년 4월 5일
The area of a triangle depends on the 3 points of it. So if your data points are not uniformly distributed, then you shall not expect triangles of the same size.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Triangulation Representation에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by