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

iGround::getSectionID()

Description

Returns the section ID for a given position.

Syntax

int32_t getSectionID(const cPosition& position) const;

Parameters

position This must be a valid cPosition on this ground.

Return Value

A value of -1 indicates that the position has not been assigned to a section. Otherwise a value of zero greater is returned, corresponding to the section for this position.

Remarks

Section IDs can be applied to faces by specifying the PE_FaceAttribute_SectionID face attribute when building a ground mesh.

C# Mapping

int getSectionID(PathEngine.Position position);

Java Mapping

int getSectionID(Position position);

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