PyntCloud

PyntCloud is the core class that englobes almost all the functionality available in pyntcloud.

Whereas, in its classical form, the point clouds are understood as simple sets of points, a PyntCloud is a Python class with several attributes and methods that enable a more fluent way of manipulating this entity.

Attributes

PyntCloud’s attributes serve to store information about the point cloud and the structures associated with it.

Each PyntCloud’s instance some predefined attributes:

  • centroid
  • mesh
  • Points
  • structures
  • xyz

You may also add other attributes to your own PyntCloud instance.

The information about this attributes is reported by the __repr__ method:

from pyntcloud import PyntCloud

cloud = PyntCloud.from_file("test/data/filters/filters.ply")

print(cloud)
PyntCloud
6 points with 0 scalar fields
0 faces in mesh
0 kdtrees
0 voxelgrids
Centroid: 0.45000001788139343, 0.45000001788139343, 0.45000001788139343
Other attributes:

Methods

Available methods are very intuitive.

Methods starting with the word add incorporate new information to some existing PyntCloud attribute.

Methods starting with the word get return some information extracted from the PyntCloud.

I/O methods read/write information from/to different 3D formats.

Other methods are useful things that don’t fit in any of the above categories.

ADD METHODS

PyntCloud.add_scalar_field()[source]

Scalar Fields

Scalar Fields - Dev

PyntCloud.add_structure()[source]

GET METHODS

PyntCloud.get_filter()[source]

Filters

Filters - Dev

PyntCloud.get_sample()[source]

Samplers

Samplers - Dev

PyntCloud.get_neighbors()[source]
PyntCloud.get_mesh_vertices()[source]

I/O METHODS

I/O

PyntCloud.from_file()[source]
PyntCloud.to_file()[source]

OTHER METHODS

PyntCloud.apply_filter()[source]
PyntCloud.split_on()[source]
PyntCloud.plot()[source]