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__(self, parent=None, name=None, thickness=1.0, colorVec=LVecBase4f(1, 1, 1, 1))[source]
create(self, frameAccurate=0)[source]
drawArrow(self, 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(self, 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(self, lineList)[source]

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

drawTo(self, *_args)[source]
getCurrentPosition(self)[source]
getNumVertices(self)[source]
getVertex(self, index)[source]
getVertexColor(self)[source]
isEmpty(self)[source]
moveTo(self, *_args)[source]
reset(self)[source]
setColor(self, *_args)[source]
setThickness(self, thickness)[source]
setVertex(self, *_args)[source]
setVertexColor(self, 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]