
11.2
SelectRingContext2 Plug-in 6 ~ 3
The face-relative offset index is calculated. If the location is set to OPPOSITE, the off-
set is set to the index halfway around the face. If the location is set to NEXT, the offset
is simply 1. Last, if the location is set to PREVI OUS, the offset is -1.
int offset;
if( loc == OPPOSITE )
offset = edges.length() / 2;
else
offset = (loc == NEXT) ? 1 : -1;
Given the face-relative offset, the final edge index is returned.
return edges[ (i + offset) % edges, length() ].
This piece of code will never be run. It is just included to prevent any unnecessary
compiler warnings. ...