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

2 vues (au cours des 30 derniers jours)
32sthide
32sthide le 2 Avr 2013
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 commentaire
Omid Adljuy
Omid Adljuy le 5 Avr 2013
Modifié(e) : Omid Adljuy le 5 Avr 2013
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.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Triangulation Representation dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by