I've been working on a project that needs to triangulate a sphere. I've known ear-clipping algorithm and know how to apply it in a non-closed polygon, like a plane.
But how to triangulate a closed polygon, like a sphere?
I've been working on a project that needs to triangulate a sphere. I've known ear-clipping algorithm and know how to apply it in a non-closed polygon, like a plane.
But how to triangulate a closed polygon, like a sphere?
I'm assuming from your question that you want to panel a spherical surface with 3D patches. I would start by sketching a 2D equilateral triangle. Get some practice segmenting it into 4 half-size equilaterals, then each of those into 4 more, etc.
In 3D, you can do the same recursive triangulation on the 4 faces of a regular tetrahedron. Except, if each vertex is normalized to unit length, then you inflate your triangulated polyhedron into a sphere of triangular patches. You can use these patches to render a solid surface rendering (you'll want to learn how a simulated light source and shading works( e.g. Lambertian, Goraud, Phong ). Or, you can draw the edges of the patches as line segments to create a wireframe mesh.