Capítulo 596 de 859

Chapter 596: SidewalkGenerator

Core Idea

Generates the raised sidewalk for a city's blocks: per block, a rounded-corner concrete slab rimmed by a distinct granite kerbstone that stands proud of the walking surface and drops to the road. Instanced across a list of placements and dressed with its own procedural material ( poured concrete flags, scored expansion joints, granite curb ). Returns a THREE.Group of two instanced meshes — the walking slab and the curb.

Unlike the building generator, this one owns its materials: the slab and curb geometry and the TSL that shades them live together here.

Code Examples

const sidewalk = new SidewalkGenerator( { width: 90, depth: 60, height: 0.5 } );
scene.add( sidewalk.build( placements ) ); // placements: Matrix4[]
  • What it demonstrates: Typical usage of SidewalkGenerator.

Reference Tables

Constructor

Signature
new SidewalkGenerator()

Key Takeaways

  1. SidewalkGenerator has no documented properties/methods beyond what's shown above — check the source link for implementation details.

Connects To