﻿# S3DIS PointNet preparation: room-local coordinates do not preserve a building map

Trace the room-origin shift in the PointNet S3DIS preparation pipeline before merging processed room arrays into a supposedly shared indoor coordinate system.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-s3dis-pointnet-room-origin-shift-not-building-map/
Language: en

## Decide whether the task needs inter-room geometry

Processed S3DIS room arrays look geometrically plausible when viewed individually. Combining them directly can nevertheless place unrelated rooms on top of each other. A room segmentation cache and a building map have different requirements: the former may intentionally remove translation, while the latter needs the original spatial relationship. Identify whether the pipeline preserved that relationship before interpreting convenient training coordinates as a common map of the captured indoor environment.

## Inspect the room aggregation step

The [PointNet room collection script](https://raw.githubusercontent.com/charlesq34/pointnet/master/sem_seg/collect_indoor3d_data.py) prepares separate room-level outputs from annotation directories. Keep the area and room identity with each output rather than treating the saved array as a self-contained spatial reference. The filename supplies provenance, but it does not necessarily encode the numerical transform applied to the coordinates. A later geometry consumer needs both the identity of the source room and the transformation history of the stored points.

## Retain the subtracted origin

The [author indoor utility](https://raw.githubusercontent.com/charlesq34/pointnet/master/sem_seg/indoor3d_util.py) aggregates annotated points and subtracts the room’s coordinate minimum before saving them. The local shape survives that translation, but the original room offset is not recoverable from the shifted coordinates alone. Save the offset explicitly if later work requires mapping predictions back to the original frame. Do not infer relative room positions from matching local minima, which are a consequence of preprocessing rather than evidence of shared physical location.

## Separate segmentation output from map reconstruction

The [batch inference implementation](https://raw.githubusercontent.com/charlesq34/pointnet/master/sem_seg/batch_inference.py) consumes room data for segmentation evaluation. That use does not promise a complete building reconstruction interface. Keep classification or segmentation results tied to their processed room coordinates until an explicit inverse transform is available. A model can perform its intended task correctly even if a downstream visualization incorrectly merges rooms, so investigate the coordinate pipeline before attributing the overlap to a learned semantic or geometric failure.

## Test a reversible geometry path

Retain a source room’s offset, apply the preparation transform, attach predictions and restore the original coordinates for a small diagnostic. Verify that the restored room agrees with the selected source representation before combining rooms. [Image and geometry coordinates](/journal/data-guide-image-exif-box-coordinate/) support transform reasoning; [software reproducibility](/journal/software-stack-reproducibility/) preserves preparation code. Report whether a cache supports local segmentation only or reversible mapping as well, preventing a useful normalization from silently becoming an incorrect claim about the layout of the building.
