Quale sarebbe la matematica associata per la creazione di linee come in questa immagine?

StackOverflow https://stackoverflow.com/questions/6314353

  •  26-10-2019
  •  | 
  •  

Domanda

ho davvero potuto usare un po 'di aiuto nella direzione giusta con questo. Grazie!

entrare descrizione dell

È stato utile?

Soluzione

I think that this looks like a Voronoi diagram, or some custom implementation of one, which divides a plane with lots of points into discrete areas.

Voronoi diagram

There are several algorithms for generating these diagrams, and you may want to take a look at this question to get an idea of what is easiest to implement. Fortune's algorithm is probably the most efficient, with O(n log n) time, but is also more complex to understand.

It may also simply be random points connected by random lines. It's hard to tell.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top