void push(Point3f position, Vector3f normal) { topPosition = nextTop(topPosition) ; positionHashCodes[topPosition] = position.hashCode() ; positions[topPosition] = position ; normals[topPosition] = normal ; }
void push(Point3f position, Vector3f normal) { topPosition = nextTop(topPosition) ; positionHashCodes[topPosition] = position.hashCode() ; positions[topPosition] = position ; normals[topPosition] = normal ; }
int getMeshReference(Point3f position) { int index ; int hashCode = position.hashCode() ; for (index = 0 ; index < SIZE ; index++) if (positionHashCodes[index] == hashCode) if (positions[index].equals(position)) break ; if (index == SIZE) return NOT_FOUND ; return flipOffset(topPosition, index) ; }
int getMeshReference(Point3f position) { int index ; int hashCode = position.hashCode() ; for (index = 0 ; index < SIZE ; index++) if (positionHashCodes[index] == hashCode) if (positions[index].equals(position)) break ; if (index == SIZE) return NOT_FOUND ; return flipOffset(topPosition, index) ; }