PathEngine home previous: iTestBed::drawMeshEdges()next: iTestBed::drawPath()
Contents, API Reference, Interfaces, iTestBed, drawMeshExpansion

iTestBed::drawMeshExpansion()

Description

Draws the result of minkowski expansion for a specified shape on the testbed's current mesh.

Syntax

void drawMeshExpansion(iShape* shape);
        

Parameters

shape The minkowski expansion for this shape will be drawn.

Remarks

The expansion is drawn as a set of lines on the surface of the mesh.
The lines will be drawn in the testbed's current colour.

If there is no current mesh, or if collision preprocess for the shape is not present on the current mesh, then this method will return with no effect.

If the small convex obstacles optimisation was used when generating collision preprocess then you will need to call iTestBed::drawSmallConvexExpansions() to draw the part of the expansion that got split off as small convex regions.
See Pathfinding Through Forests for details about the small convex optimisation.

See Also

iTestBed::setColour(), iTestBed::setColourRGB(), iTestBed::drawSmallConvexExpansions(), iTestBed::drawMesh(), iTestBed::drawMeshEdges()
Documentation for PathEngine release 5.18 - Copyright © 2002-2008 PathEnginenext: iTestBed::drawPath()