PathEngine home previous: iAgent::getAllAgentsOverlapped()next: iAgent::getNumberOfVertices()
Contents, API Reference, Interfaces, iAgent, getMesh

iAgent::getMesh()

Description

A helper function to access the mesh on which this agent is placed.

Note that this method gives you an API object reference to the mesh, with the API object reference count for the returned mesh incremented accordingly. You need to ensure that delete is called for the returned mesh pointer (or it's release() method), when it is no longer required.

If you want to access the mesh object temporarily, without incrementing the API object reference count, use iAgent::refMesh().

Syntax

iMesh* getMesh() const;

Return Value

The mesh on which this agent is placed.

See Also

Interface iMesh, iMesh::placeAgent()

C# Mapping

Mesh getMesh();

Java Mapping

Mesh getMesh();

Documentation for PathEngine release 6.00 - Copyright © 2002-2016 PathEnginenext: iAgent::getNumberOfVertices()