p5.js simulation: electrons on a sphere https://atomic.garden/p5/sphere/
Find a file
root 838eae2cbf polyhedron alg progress: face separates vertices
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
2025-04-25 17:15:00 +00:00
lib sphere 2025-04-24 07:13:31 +00:00
.gitattributes image of earth 2025-04-24 07:31:23 +00:00
assets.json image of earth 2025-04-24 07:31:23 +00:00
atlas1.jpg image of earth 2025-04-24 07:31:23 +00:00
index.html move charge repelling stuff to its own file 2025-04-25 08:57:27 +00:00
sketch.js polyhedron alg progress: face separates vertices 2025-04-25 17:15:00 +00:00
thomson-problem.js move charge repelling stuff to its own file 2025-04-25 08:57:27 +00:00