class documentation
class PointCloud(Object3D): (source)
Constructor: PointCloud(name, pcd_path, material, center_geometry, ...)
Represents a point cloud.
Parameters | |
name | the name of the point cloud |
pcd | the path to the .pcd file. The path may be either absolute or relative to the directory containing the .fo3d file |
material | the material of the point cloud. If not specified, defaults to a
new instance of fiftyone.core.threed.PointCloudMaterial
with its default parameters |
center | whether to center the geometry of the point cloud. Defaults to False |
flag | whether to flag the point cloud for
usage in orthographic projection. Each
fiftyone.core.threed.Scene can have at most one asset
flagged for orthographic projection. Defaults to False. If
multiple assets are flagged, the first one will be chosen |
visible | default visibility of the point cloud in the scene |
position | the position of the object in point cloud space |
quaternion | the quaternion of the point cloud in object space |
scale | the scale of the point cloud in object space |
Raises | |
ValueError | if pcd_path does not end with .pcd |
Method | __init__ |
Undocumented |
Method | set |
Sets the material of the point cloud. |
Instance Variable | center |
Undocumented |
Instance Variable | default |
Undocumented |
Instance Variable | flag |
Undocumented |
Instance Variable | pcd |
Undocumented |
Method | _to |
Extra properties to include in dictionary representation. |
Class Variable | _asset |
Undocumented |
Inherited from Object3D
:
Method | __eq__ |
Undocumented |
Method | __iter__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | __str__ |
Undocumented |
Method | add |
Add one or more objects as children of this one. |
Method | as |
Converts the object to a dict. |
Method | clear |
Remove all children from this object. |
Method | local |
Undocumented |
Method | position |
Undocumented |
Method | quaternion |
Undocumented |
Method | rotation |
Undocumented |
Method | scale |
Undocumented |
Method | traverse |
Traverse the scene graph. |
Instance Variable | children |
Undocumented |
Property | local |
The local transform matrix of the object. |
Property | rotation |
The rotation of the object in object space. |
Property | uuid |
The unique ID of the object. |
Static Method | _from |
Creates an Object3D (or its subclass) from a dict. |
Method | _get |
Get asset paths for this node |
Method | _update |
Undocumented |
Instance Variable | _local |
Undocumented |
Instance Variable | _position |
Undocumented |
Instance Variable | _quaternion |
Undocumented |
Instance Variable | _rotation |
Undocumented |
Instance Variable | _scale |
Undocumented |
Instance Variable | _uuid |
Undocumented |
def __init__(self, name:
str
, pcd_path: str
, material: PointCloudMaterial | None
= None, center_geometry: bool
= False, flag_for_projection: bool
= False, visible=True, position: Vec3UnionType | None
= None, scale: Vec3UnionType | None
= None, quaternion: Quaternion | None
= None):
(source)
¶
Undocumented
Sets the material of the point cloud.
Parameters | |
material:PointCloudMaterial | The material to set as the default |