PathEngine home previous: iGround::getNumberOf3DFaces()next: iGround::getSectionID()
Contents, API Reference, Interfaces, iGround, getNumberOfSections



Helper function returning the number of sections present in the underlying 3D mesh.


int32_t getNumberOfSections() const;

Return Value

The number of sections allocated for this ground.

Note that this is actually determined by top sectionID assigned in ground + 1.
So, for example, if polygons are present with sectionID 0 and other polygons are present with sectionID 2 but there are no polygons present with sectionID 1 (or any other terrain layer), this method will return 3.

C# Mapping

int getNumberOfSections();

Java Mapping

int getNumberOfSections();

Documentation for PathEngine release 6.03 - Copyright © 2002-2021 PathEnginenext: iGround::getSectionID()