-
Notifications
You must be signed in to change notification settings - Fork 3
PointCloud
Jonathan edited this page Apr 9, 2024
·
1 revision
Represents a collection of points in space as a point cloud.
Initializes a PointCloud object with a list of points.
#### Parameters:
- `points` (list): An optional list of points to initialize the point cloud. Each point can be an instance of a Point class or a tuple/list of coordinates.
Initializes the PointCloud's attributes and sets up the list of points based on the input provided. The ID is generated to uniquely identify the point cloud.
-
__str__(self) -> str
: Generates a string representation of the PointCloud object.
Generates a string representation of the PointCloud object.
str
: A string representation of the PointCloud, including its class name and the list of points it contains.
This method facilitates easy printing and logging of PointCloud objects, showing the collection of points within the cloud in a readable format.