#voronoi — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #voronoi, aggregated by home.social.
-
A #Voronoi #Diagram partitions a plane into regions based on distance to a specific set of points, where every location in a cell is closer to its "seed" than to any other.
It is a fundamental tool used in fields ranging from city planning and robotics to modeling the cellular structure of organic tissues.
-
#HowToThing #022 — Quasi-random lattice generator using https://thi.ng/lowdisc and https://thi.ng/geom-voronoi
These infinite and parametric low-discrepancy sequence generators can be used to produce n-dimensional samples/points and are useful for a whole range of graphics (and more generally sampling related) topics and generative design techniques. The example also shows basic usage of the 2D Delaunay/Voronoi mesh, incl. obtaining cells which can be automatically clipped against a user-provided convex boundary polygon.
Demo (reload to randomize):
https://demo.thi.ng/umbrella/quasi-lattice/Source (more comments than code 😎):
https://github.com/thi-ng/umbrella/tree/develop/examples/quasi-lattice/src/index.tsFurther reading:
https://extremelearning.com.au/unreasonable-effectiveness-of-quasirandom-sequences/
https://en.wikipedia.org/wiki/Low-discrepancy_sequence#ThingUmbrella #Voronoi #Quasicrystal #Generative #Graphics #LowDiscrepancy #Sampling #Geometry #TypeScript #JavaScript #Tutorial