threejs-worldgen
    Preparing search index...

    Function extractBlocks

    • Finds the faces of a planar road graph by half-edge traversal (always taking the next road clockwise), drops the outer faces (clockwise ones) and dead-end spurs, and insets each face by the half width plus sidewalk of every road around it.

      Parameters

      Returns Block[]