pytransform3d.visualizer.Cone

class pytransform3d.visualizer.Cone(height=1, radius=1, A2B=array([[1., 0., 0., 0.], [0., 1., 0., 0.], [0., 0., 1., 0.], [0., 0., 0., 1.]]), resolution=20, c=None)[source]

Bases: pytransform3d.visualizer._artists.Artist

Cone.

Parameters
heightfloat, optional (default: 1)

Height of the cone along its z-axis.

radiusfloat, optional (default: 1)

Radius of the cone.

A2Barray-like, shape (4, 4)

Pose of the cone, which is the center of its circle.

resolutionint, optional (default: 20)

The circle will be split into resolution segments.

carray-like, shape (3,), optional (default: None)

Color

__init__(height=1, radius=1, A2B=array([[1., 0., 0., 0.], [0., 1., 0., 0.], [0., 0., 1., 0.], [0., 0., 0., 1.]]), resolution=20, c=None)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__([height, radius, A2B, resolution, c])

Initialize self.

add_artist(figure)

Add artist to figure.

set_data(A2B)

Update data.

Attributes

geometries

Expose geometries.

set_data(A2B)[source]

Update data.

Parameters
A2Barray-like, shape (4, 4)

Center of the cone’s circle.

property geometries

Expose geometries.

Returns
geometrieslist

List of geometries that can be added to the visualizer.

add_artist(figure)

Add artist to figure.

Parameters
figureFigure

Figure to which the artist will be added.

Examples using pytransform3d.visualizer.Cone