class documentation
class CylinderGeometry(Shape3D): (source)
Constructor: CylinderGeometry(name, radius_top, radius_bottom, height, ...)
Represents a 3D cylinder.
Parameters | |
name | name of the cylinder |
radius | the radius of the top of the cylinder. Defaults to 1 |
radius | the radius of the bottom of the cylinder. Defaults to 1 |
height | the height of the cylinder. Defaults to 1 |
radial | number of segmented faces around the circumference of the cylinder. Defaults to 32 |
height | number of rows of faces around the circumference of the cylinder. Defaults to 1 |
open | whether the cylinder is open-ended. Defaults to False |
theta | the start angle for the vertical sweep. Defaults to 0 |
theta | the angle for the vertical sweep. Defaults to 2*Math.PI, which makes for a complete cylinder |
material | default material for the cylinder. Defaults to
fiftyone.core.threed.MeshStandardMaterial |
visible | default visibility of the mesh in the scene |
position | the position of the mesh in object space |
quaternion | the quaternion of the mesh in object space |
scale | the scale of the mesh in object space |
Method | __init__ |
Undocumented |
Instance Variable | height |
Undocumented |
Instance Variable | height |
Undocumented |
Instance Variable | open |
Undocumented |
Instance Variable | radial |
Undocumented |
Instance Variable | radius |
Undocumented |
Instance Variable | radius |
Undocumented |
Instance Variable | theta |
Undocumented |
Instance Variable | theta |
Undocumented |
Method | _to |
Returns the extra data to include in the dict representation. |
Inherited from Mesh
(via Shape3D
):
Method | set |
Sets the material of the mesh. |
Instance Variable | default |
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 |
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 |
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 |
def __init__(self, name:
str
, radius_top: float
= 1, radius_bottom: float
= 1, height: float
= 1, radial_segments: int
= 32, height_segments: int
= 1, open_ended: bool
= False, theta_start: float
= 0, theta_length: float
= 2 * math.pi, default_material: MeshMaterial | None
= None, visible=True, position: Vec3UnionType | None
= None, scale: Vec3UnionType | None
= None, quaternion: Quaternion | None
= None):
(source)
¶
overrides
fiftyone.core.threed.mesh.Mesh.__init__
Undocumented