Contents, API Reference, Interfaces, iObstacleSet, getNumberOfConnectedRegions
Returns the number of distinct regions in connected region preprocess for the specified shape.
int32_t getNumberOfConnectedRegions(const iShape& shape) const;
The agent shape for which connected region preprocess should be queried.
Requires that this obstacle set has been marked for preprocessing.
See Obstacle Management for details about setting up preprocessed obstacle sets.
Return ValueThe number of connected regions.
This method enables you to query against the set of 'semi-dynamic' obstacles
in a 'preprocessed obstacle set', in addition to static geometry.
For queries against just the static geometry on this mesh (i.e. external edges and burnt in obstacles),
int getNumberOfConnectedRegions(Shape shape);