Pointcloud
- class compas.geometry.Pointcloud(points, **kwargs)[source]
Bases:
Primitive
Class for working with pointclouds.
- Parameters
points (sequence[point]) – A sequence of points to add to the cloud.
**kwargs (dict[str, Any], optional) – Additional keyword arguments collected in a dict.
- Attributes
points (list[
Point
]) – The points of the cloud.
Examples
>>>
Methods
Construct a point cloud within a given box.
Construct a point cloud within a given box.
Construct an object of this type from the provided data.
Construct a pointcloud from a PCD file.
Construct a pointcloud from a PLY file.
Apply a transformation to the pointcloud.
Inherited Methods
Converts the instance to a string.
Make an independent copy of the data object.
Construct an object from serialized data contained in a JSON file.
Construct an object from serialized data contained in a JSON string.
Compute a hash of the data for comparison during version control using the sha256 algorithm.
Convert an object to its native data representation.
Serialize the data representation of an object to a JSON file.
Serialize the data representation of an object to a JSON string.
Returns a transformed copy of this geometry.
Validate the object's data against its data schema.
Validate the object's data against its json schema.