PointCloud.__getattr__#
- PointCloud.__getattr__(name: str) Any[source][source]#
Access Open3D PointCloud methods and attributes
- Parameters:
name (str) – method or attribute name
- Raises:
AttributeError – neither this class nor the Open3D point cloud has a method or property of this name
If
Pis aPointCloudthenP.nameinvokes methodnameof the underlyingopen3d.geometry.PointCloudobject. For example:pcfiltered, ind = pc.remove_radius_outlier(radius=0.2, nb_points=100) pc.is_empty() # invoke is_empty predicate method pc.colors # get colors attribute
Note
This is a convenience method to avoid having to explicitly all the properties and methods of the Open3D point cloud object.
If the method returns a new point cloud object, or a tuple that contains one, it is converted to a Toolbox
PointCloudinstance.Arguments and return values other than point clouds are passed through unchanged, so arrays use the Open3D convention of one point per row, not the Toolbox convention of one point per column.
Changed in version 2.5.0: An unknown name raises
AttributeError, as Python expects, sohasattrandgetattrwith a default work. It used to raiseValueError. The message names the two classes that were searched and suggests similar names. A point cloud that is returned by itself is converted, not only one inside a tuple.See also