@openhps/geospatial
    Preparing search index...

    Function connectAdjacentSpaces

    • Derives adjacency from the boundaries of symbolic spaces and records it on the spaces.

      Spaces are compared pairwise within the same parent (floor) and the same coordinate system. When their boundaries touch or lie within adjacencyToleranceMeters they are connected with [[SymbolicSpace.addConnectedSpace]], and the connection carries the semantic kind and width:

      • a shared wall at least maxDoorWidthMeters wide is an opening (a corridor mouth or hall),
      • a shared wall at least minDoorWidthMeters wide is a door,
      • a shorter contact or a point touch is a touch (traversable, but not a door).

      Spaces whose interiors overlap are reported by the returned adjacency not being created: an overlap is a modelling error, not a connection.

      connectAdjacentSpaces(floor.spaces, { adjacencyToleranceMeters: 0.2 });
      room.isConnected(corridor); // true

      Parameters

      Returns SpaceAdjacency[]

      Every newly derived adjacency