p5.js simulation: electrons on a sphere
https://atomic.garden/p5/sphere/
![]() the algorithm so far: - select 3 vertices - draw a triangle between them - for all vertex pairs (non-triangle vertices): -- draw a line between them -- if line intersects with triangle plane, red -- otherwise, green if the line is red the two vertices are on other sides of the triangle plane, and this triangle can't be a face, because we want the polyhedron to be convex to demo: press 9, press g, press space; press 9 over and over |
||
---|---|---|
lib | ||
.gitattributes | ||
assets.json | ||
atlas1.jpg | ||
index.html | ||
sketch.js | ||
thomson-problem.js |