About

A scrapbook about various hacks and obscure topics. You can leave comments here.

Looking for something specific?

 
Plotting rectangles on a sphere.
I tried drawing the rectangles as plannar rectangles, but that didn’t work very well. When two rectangles touch each other, you can clearly see the line created by the intersecting planes. To make it work, the rectangles have to curve around the sphere. Although it is relatively easy to draw geodesics connecting the four points, I couldn’t find a parametrized form of spherical polygons. I eventually found a fragment of Mathematica code that recursively approximates the surface with subdividing (plannar) triangles.

Plotting rectangles on a sphere.

I tried drawing the rectangles as plannar rectangles, but that didn’t work very well. When two rectangles touch each other, you can clearly see the line created by the intersecting planes. To make it work, the rectangles have to curve around the sphere. Although it is relatively easy to draw geodesics connecting the four points, I couldn’t find a parametrized form of spherical polygons. I eventually found a fragment of Mathematica code that recursively approximates the surface with subdividing (plannar) triangles.

2010.01.28  1:36am  

Post Notes

Links

      
RSS
a Tumblr theme by Robert Boylan