CSharpGL.OneIndexRenderer.GetLastIndexIdOfPickedGeometry C# (CSharp) Method

GetLastIndexIdOfPickedGeometry() private method

private GetLastIndexIdOfPickedGeometry ( RenderEventArgs arg, uint lastVertexId, int x, int y ) : RecognizedPrimitiveInfo
arg RenderEventArgs
lastVertexId uint
x int mouse position(Left Down is (0, 0)).
y int mouse position(Left Down is (0, 0)).
return RecognizedPrimitiveInfo
        private RecognizedPrimitiveInfo GetLastIndexIdOfPickedGeometry(
            RenderEventArgs arg,
            uint lastVertexId, int x, int y)
        {
            List<RecognizedPrimitiveInfo> primitiveInfoList = GetLastIndexIdList(arg, lastVertexId);

            if (primitiveInfoList.Count == 0) { return null; }

            RecognizedPrimitiveInfo lastIndexId = GetLastIndexId(arg, primitiveInfoList, x, y);

            return lastIndexId;
        }