Metadata-Version: 2.4
Name: pylepcc
Version: 0.1.0
Summary: Python bindings to Esri's Limited-Error Point Cloud Compression library.
Author-Email: Payson Wallach <payson@paysonwallach.com>
License-File: LICENSE
License-File: NOTICE.TXT
Requires-Python: >=3.10
Requires-Dist: numpy>=2.2.6
Provides-Extra: format
Requires-Dist: black~=26.1; extra == "format"
Requires-Dist: isort~=7.0; extra == "format"
Provides-Extra: publish
Requires-Dist: twine~=6.2; extra == "publish"
Provides-Extra: test
Requires-Dist: pytest~=9.0; extra == "test"
Description-Content-Type: text/markdown

# pylepcc

Minimal Python bindings to Esri's Limited-Error Point Cloud Compression (LEPCC) Library.

## Installation

Using pip:

```shell
pip install pylepcc
```

## Usage

Compress some positions:

```python
compressed, order = pylepcc.compress_xyz(positions)
```

Note that LEPCC may reorder points during compression. The permutation is described in the returned order array. Let's compress some corresponding colors:

```python
compressed = pylepcc.compress_rgb(colors[np.argsort(order)])
```

In order to preserve the mapping of positions to colors, the colors must be sorted according to the reordering done during position compression.

### Development

Hacking on `pylepcc` is as easy as installing in editable mode:

```shell
pip install -e .
```
