director.debugVis module

class director.debugVis.DebugData[source]

Bases: object

addArrow(start, end, headRadius=0.05, headLength=None, tubeRadius=0.01, color=[1, 1, 1], startHead=False, endHead=True)[source]
addCapsule(center, axis, length, radius, color=[1, 1, 1])[source]
addCircle(origin, normal, radius, color=[1, 1, 1])[source]
addCone(origin, normal, radius, height, color=[1, 1, 1], fill=True)[source]
addCube(dimensions, center, color=[1, 1, 1], subdivisions=0)[source]
addCylinder(center, axis, length, radius, color=[1, 1, 1])[source]
addEllipsoid(center, radii, color=[1, 1, 1], alpha=1.0, resolution=24)[source]

Add an ellipsoid centered at [center] with x, y, and z principal axis radii given by radii = [x_scale, y_scale, z_scale]

addFrame(frame, scale, tubeRadius=0.0)[source]
addLine(p1, p2, radius=0.0, color=[1, 1, 1])[source]
addPolyData(polyData, color=[1, 1, 1], extraLabels=None)[source]

Add a vtkPolyData to the debug data. A color can be provided. If the extraLabels argument is used, it should be a list of tuples, each tuple is (labelName, labelValue) where labelName is a string and labelValue is an int or float. An array with labelName will be filled with labelValue and added to the poly data.

addPolyLine(points, isClosed=False, radius=0.0, color=[1, 1, 1])[source]
addSphere(center, radius=0.05, color=[1, 1, 1], resolution=24)[source]
addTorus(radius, thickness, resolution=30)[source]
getPolyData()[source]
write(filename)[source]