Registry / devops / pyntcloud

pyntcloud

JSON →
library0.3.1pypypi✓ verified 86d ago

A Python library for working with 3D point clouds, providing tools for loading, filtering, downsampling, and visualizing point cloud data. Current version is 0.3.1, with irregular releases.

pip install pyntcloud
INSTALL
IMPORT
SIG · PYNTCLOUD
P
pyntcloud
devopspythonv0.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PyntCloud
from pyntcloud import PyntCloud
import pyntcloud
The main class is PyntCloud, not a module-level function. Direct import of pyntcloud does not provide access to PyntCloud automatically.

Create a PyntCloud from a numpy array. Requires pandas DataFrame structure.

import numpy as np from pyntcloud import PyntCloud # Create a simple point cloud manually points = np.array([ [0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1] ]) cloud = PyntCloud(pd.DataFrame(points, columns=['x','y','z'])) print(cloud)
Debug
Known issues
breakingRenamed attributes in 0.3.0: `points` is now `xyz`; use `cloud.xyz` instead of `cloud.points`.
fix
Replace `cloud.points` with `cloud.xyz`.
affects: >=0.3.0
breakingIn 0.3.0, the 'scalar_fields' attribute was removed; use direct DataFrame column access instead.
fix
Access scalar fields via `cloud.points['field_name']`.
affects: >=0.3.0
gotchaThe `points` attribute of PyntCloud is a pandas DataFrame, not a numpy array. Operations expecting numpy arrays may fail.
fix
Convert with `cloud.points.values` or `cloud.xyz` to get numpy array for coordinates.
affects: all
Errors
Common errors & fixes
AttributeError: 'PyntCloud' object has no attribute 'points'
In version 0.3.0 and above, the 'points' attribute was renamed to 'xyz'.
fix
Use `cloud.xyz` instead of `cloud.points`.
ModuleNotFoundError: No module named 'pyntcloud'
pyntcloud is not installed or is installed in a different environment.
fix
Run `pip install pyntcloud` to install the library.
Upgrade
Version history
0.3.1latest on PyPI · released Jul 31, 2022
Audit
Dependencies
numpyrequiredcore dependency for array operations
pandasrequiredused for DataFrame-based point cloud representation
scipyrequiredused for KDTree and other scientific computations
Agent activity
4 hits · last 30 days
node
4
Resources
pyntcloud — pip install pyntcloud · libregistry