PathEngine home previous: iPath::getLength()next: iPath::hasRefs()
Contents, API Reference, Interfaces, iPath, getMesh



A helper function to access the mesh on which this path was created.


std::unique_ptr<iMesh> getMesh() const

Return Value

The mesh on which this path was created.


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. (In C++ when obtaining an API ref wrapped in a unique_ptr, the unique_ptr handles this for you.)

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

C# Mapping

Mesh getMesh();

Java Mapping

Mesh getMesh();

Documentation for PathEngine release 6.03 - Copyright © 2002-2021 PathEnginenext: iPath::hasRefs()