Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

192
Views
What data structure are practical for spiderweb-like structures

I'm creating a program that generates miniature cities.

My first step was to create the streets of the city (represented with lines). In order to do so I created a street class which grows and gives birth to smaller streets recursively. The streets then stop growing as soon as they hit another street or the edge of the world. It looks like this :

enter image description here

As a second step I'd like to extrude on a z-axis all the polygons encapsulated by the streets, though I'm having a hard time finding the coordinates of these polygons easily.

Does anyone know of a data strcuture that I could rewrite my program with that would make accessing the polygons coordinates easily ? I've tried to implement a half-edge data structure but it really seems like overkill.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!