class documentation

Represents a 3D sphere.

Parameters
namethe name of the sphere
radiusthe radius of the sphere. Defaults to 1
width_segmentsthe number of segmented faces around the circumference of the sphere. Defaults to 32
height_segmentsthe number of rows of faces around the circumference of the sphere. Defaults to 16
phi_startthe start angle for the horizontal sweep. Defaults to 0
phi_lengththe angle for the horizontal sweep. Defaults to 2*math.pi, which makes for a complete sphere
theta_startthe start angle for the vertical sweep. Defaults to 0
theta_lengththe angle for the vertical sweep. Defaults to math.pi, which makes for a complete sphere
materialthe default material for the sphere. Defaults to fiftyone.core.threed.MeshStandardMaterial
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
Method __init__ Undocumented
Instance Variable height_segments Undocumented
Instance Variable phi_length Undocumented
Instance Variable phi_start Undocumented
Instance Variable radius Undocumented
Instance Variable theta_length Undocumented
Instance Variable theta_start Undocumented
Instance Variable width_segments Undocumented
Method _to_dict_extra Returns the extra data to include in the dict representation.

Inherited from Mesh (via Shape3D):

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

Inherited from Object3D (via Shape3D, 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
Class Variable _asset_path_fields 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, radius: float = 1, width_segments: int = 32, height_segments: int = 16, phi_start: float = 0, phi_length: float = 2 * math.pi, theta_start: float = 0, theta_length: float = math.pi, default_material: MeshMaterial | None = None, visible=True, position: Vec3UnionType | None = None, scale: Vec3UnionType | None = None, quaternion: Quaternion | None = None): (source)
height_segments: int = (source)

Undocumented

phi_length: float = (source)

Undocumented

phi_start: float = (source)

Undocumented

Undocumented

theta_length: float = (source)

Undocumented

theta_start: float = (source)

Undocumented

width_segments: int = (source)

Undocumented

def _to_dict_extra(self): (source)

Returns the extra data to include in the dict representation.