class documentation

Represents a PLY mesh. A PLY mesh can be a point cloud or a mesh.

Parameters
namethe name of the mesh
ply_paththe path to the .ply file. The path may be either absolute or relative to the directory containing the .fo3d file
is_point_cloudwhether the PLY file is a point cloud. Defaults to False
center_geometrywhether to center the geometry. Defaults to True
materialdefault material for the mesh if PLY file does not contain vertex colors. Defaults to fiftyone.core.threed.MeshStandardMaterial. If the PLY file contains vertex colors, the material is ignored and vertex colors are used
visibledefault visibility of the mesh in the scene
positionthe position of the mesh in object space
quaternionthe quaternion of the mesh in object space
scalethe scale of the mesh in object space
Raises
ValueErrorif ply_path does not end with .ply
Method __init__ Undocumented
Instance Variable center_geometry Undocumented
Instance Variable is_point_cloud Undocumented
Instance Variable ply_path Undocumented
Method _to_dict_extra Returns the extra data to include in the dict representation.
Class Variable _asset_path_fields Undocumented

Inherited from Mesh:

Method set_default_material Sets the material of the mesh.
Instance Variable default_material Undocumented

Inherited from Object3D (via Mesh):

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_dict Converts the object to a dict.
Method clear Remove all children from this object.
Method local_transform_matrix.setter Undocumented
Method position.setter Undocumented
Method quaternion.setter Undocumented
Method rotation.setter Undocumented
Method scale.setter Undocumented
Method traverse Traverse the scene graph.
Instance Variable children Undocumented
Property local_transform_matrix 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_dict Creates an Object3D (or its subclass) from a dict.
Method _get_asset_paths Get asset paths for this node
Method _update_matrix Undocumented
Instance Variable _local_transform_matrix 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, ply_path: str, is_point_cloud: bool = False, center_geometry: bool = True, default_material: MeshMaterial | None = None, visible=True, position: Vec3UnionType | None = None, scale: Vec3UnionType | None = None, quaternion: Quaternion | None = None): (source)
center_geometry: bool = (source)

Undocumented

is_point_cloud: bool = (source)

Undocumented

ply_path: str = (source)

Undocumented

def _to_dict_extra(self): (source)

Returns the extra data to include in the dict representation.