class Object3D(object): (source)
Known subclasses: fiftyone.core.threed.lights.Light
, fiftyone.core.threed.mesh.Mesh
, fiftyone.core.threed.pointcloud.PointCloud
, fiftyone.core.threed.scene_3d.Scene
Constructor: Object3D(name, visible, position, scale, quaternion)
The base class for all 3D objects in the scene.
Parameters | |
name | the name of the object |
visible | default visibility of the object in the scene |
position | the position of the object in object space |
quaternion | the quaternion of the object in object space |
scale | the scale of the object in object space |
Method | __eq__ |
Undocumented |
Method | __init__ |
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 |
Instance Variable | name |
Undocumented |
Instance Variable | visible |
Undocumented |
Property | local |
The local transform matrix of the object. |
Property | position |
The position of the object in object space. |
Property | quaternion |
The quaternion of the object in object space. |
Property | rotation |
The rotation of the object in object space. |
Property | scale |
The scale 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 | _to |
Returns the extra data to include in the dict representation. |
Method | _update |
Undocumented |
Class Variable | _asset |
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 |
str
, visible=True, position: Vec3UnionType | None
= None, scale: Vec3UnionType | None
= None, quaternion: Quaternion | None
= None):
(source)
¶
def quaternion(self, value:
Quaternion | list[ float] | tuple[ float, ...]
):
(source)
¶
Undocumented
fiftyone.core.threed.lights.AmbientLight
, fiftyone.core.threed.lights.DirectionalLight
, fiftyone.core.threed.lights.PointLight
, fiftyone.core.threed.lights.SpotLight
, fiftyone.core.threed.mesh.FbxMesh
, fiftyone.core.threed.mesh.GltfMesh
, fiftyone.core.threed.mesh.ObjMesh
, fiftyone.core.threed.mesh.PlyMesh
, fiftyone.core.threed.mesh.StlMesh
, fiftyone.core.threed.pointcloud.PointCloud
, fiftyone.core.threed.shape_3d.BoxGeometry
, fiftyone.core.threed.shape_3d.CylinderGeometry
, fiftyone.core.threed.shape_3d.PlaneGeometry
, fiftyone.core.threed.shape_3d.SphereGeometry
Undocumented
fiftyone.core.threed.lights.Light
, fiftyone.core.threed.mesh.Mesh
, fiftyone.core.threed.pointcloud.PointCloud
Undocumented
The local transform matrix of the object.
Setting this property also decomposes the matrix into its constituent position, quaternion, and scale components. However, decomposition of matrices with skew / shear components (non-uniform scaling) might have unexpected results.
fiftyone.core.threed.lights.Light
, fiftyone.core.threed.mesh.Mesh
, fiftyone.core.threed.pointcloud.PointCloud
The position of the object in object space.
fiftyone.core.threed.lights.Light
, fiftyone.core.threed.mesh.Mesh
, fiftyone.core.threed.pointcloud.PointCloud
The quaternion of the object in object space.
fiftyone.core.threed.lights.Light
, fiftyone.core.threed.mesh.Mesh
, fiftyone.core.threed.pointcloud.PointCloud
The scale of the object in object space.
fiftyone.core.threed.lights.Light
, fiftyone.core.threed.mesh.Mesh
, fiftyone.core.threed.pointcloud.PointCloud
, fiftyone.core.threed.scene_3d.Scene
Returns the extra data to include in the dict representation.