mourner / icomesh

Fast JavaScript icosphere mesh generation library for WebGL visualizations
https://observablehq.com/@mourner/fast-icosphere-mesh
ISC License
55 stars 4 forks source link

Rotate icosahedron vertices so poles are vertices #7

Open IvanSanchez opened 5 years ago

IvanSanchez commented 5 years ago

Reorients seed icosahedron so that the north and south poles are vertices instead of edge midpoints, as per https://github.com/mourner/icomesh/issues/4#issuecomment-535528947

See https://observablehq.com/d/ebcd62dce093afc3 - the z-axis (blue in the interactive demo, orthogonal to the screen in the screenshot) passes through the two poles.

image

IvanSanchez commented 5 years ago

Mathy bits came from https://www.songho.ca/opengl/gl_sphere.html#icosphere image

mourner commented 5 years ago

Very cool! Plugged it into the UV mapping notebook and while we'll have to find another fixing scheme, it looks very interesting: image

I guess the only issue that could be problematic is that 1) it's more asymmetric, and 2) it's a little less precise on the poles when texturing.

P.S. please fix the build!

mourner commented 5 years ago

For comparison, 6-pole UV mapping looks like this:

image

Fil commented 5 years ago

Now I want to rotate it so that the poles are at Buckminster Fuller’s special points.