direct.directtools.DirectGeometry

from direct.directtools.DirectGeometry import LineNodePath, getCrankAngle, getNearProjectionPoint, getScreenXY, planeIntersect, qSlerp, relHpr

Inheritance diagram

Inheritance diagram of direct.directtools.DirectGeometry

class LineNodePath(parent=None, name=None, thickness=1.0, colorVec=LVecBase4f(1, 1, 1, 1))[source]

Bases: NodePath

__init__(parent=None, name=None, thickness=1.0, colorVec=LVecBase4f(1, 1, 1, 1))[source]
create(frameAccurate=0)[source]
drawArrow(sv, ev, arrowAngle, arrowLength)[source]

Do the work of moving the cursor around to draw an arrow from sv to ev. Hack: the arrows take the z value of the end point

drawArrow2d(sv, ev, arrowAngle, arrowLength)[source]

Do the work of moving the cursor around to draw an arrow from sv to ev. Hack: the arrows take the z value of the end point

drawLines(lineList)[source]

Given a list of lists of points, draw a separate line for each list

drawTo(*_args)[source]
getCurrentPosition()[source]
getNumVertices()[source]
getVertex(index)[source]
getVertexColor(index)[source]
isEmpty()[source]
moveTo(*_args)[source]
reset()[source]
setColor(*_args)[source]
setThickness(thickness)[source]
setVertex(*_args)[source]
setVertexColor(vertex, *_args)[source]
getCrankAngle(center)[source]
getNearProjectionPoint(nodePath)[source]
getScreenXY(nodePath)[source]
planeIntersect(lineOrigin, lineDir, planeOrigin, normal)[source]
qSlerp(startQuat, endQuat, t)[source]
relHpr(nodePath, base, h, p, r)[source]