AlexBrand
AlexBrand

Reputation: 12429

Computing surface area of a spherical patch

By using surf2patch(sphere(),'triangle'), the spherical coordinates of sphere are converted into triangular patches.

Is there any way of calculating the surface area of each one of these patches?

I can iterate through each patch, and obtain the cartesian coordinates of each of the vertices that form the patch, but not sure about the math part.

Thanks

Upvotes: 2

Views: 1812

Answers (1)

user1904566
user1904566

Reputation:

This means that your triangles(polygones) are already in cartesian coordinates. I will suggest you to use the basic polygone command i.e. A = polyarea(X,Y). By this way you can iterate through all of your triangles and calculate the area of it.

Look at this mathworks.com page for more help.

Upvotes: 2

Related Questions