py3dtiles.reader.xyz_reader module

py3dtiles.reader.xyz_reader.get_metadata(path: Path, fraction: int = 100) MetadataReaderType[source]
py3dtiles.reader.xyz_reader.run(filename: str, offset_scale: Tuple[ndarray[Any, dtype[float64]], ndarray[Any, dtype[float64]], ndarray[Any, dtype[float64]] | None, float | None], portion: Tuple[int, ...], transformer: Transformer | None, color_scale: float | None) Generator[Tuple[ndarray[Any, dtype[float32]], ndarray[Any, dtype[uint8]], ndarray[Any, dtype[uint8]]], None, None][source]

Reads points from a xyz file

Consider XYZIRGB format following FME documentation(*). If the number of features does not correspond (i.e. does not equal to 7), we do the following hypothesis: - 3 features mean XYZ - 4 features mean XYZI - 6 features mean XYZRGB

NOTE: we assume RGB are 8 bits components.

(*) See: https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_ReadersWriters/pointcloudxyz/pointcloudxyz.htm