PolygonMeshInternalAllocator.kl

Functions

NextOff

UInt32 NextOff ( in UInt32 offset, in UInt32 start, in UInt32 end )

PrevOff

UInt32 PrevOff ( in UInt32 offset, in UInt32 count )

Returns the previous offset (or index) within a circular array of size count. This is useful when accessing polygon’s previous polygonPointIndex or point’s previous pointNeighborIndex.