Contents, API Reference, Interfaces, iMesh, getGround
A helper function to access the ground surface object for a mesh.
std::unique_ptr<const iGround> getGround() const
The ground surface for this mesh.
Note that this method gives you an API object reference to the ground,
with the API object reference count for the returned mesh incremented accordingly.
You need to ensure that delete is called for the returned ground 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 ground object temporarily,
without incrementing the API object reference count,