public int[][] Generate(bool document = true)
    {
        if (document)
        {
            //return GenerateWithDocumentation();
        }

        //Generates the GT for all the objects in the objectfolder
        int[][] grids = new int[_som.Count()][];
        for (int objectIndex = 0; objectIndex < _som.Count(); objectIndex++)
        {
            _som.PrepareStudyObject(objectIndex);
            _ogm.ClearGrid();
            RenderAllViews();

            int[] viewGrid  = _ogm.GetViewGrid();
            int[] pointGrid = _ogm.GetPointGrid();

            ReduceGrid(viewGrid, pointGrid);

            grids[objectIndex] = viewGrid;
        }
        _grids = grids;
        _ogm.ClearGrid();
        Debug.Log("Generated grids of " + _som.Count() + " objects");
        return(grids);
    }
 private void StochasticReset()
 {
     //Resets the environment in a random manner
     _ogm.ClearGrid();
     _som.PrepareRandomStudyObject();
     _vm.Reset();
     _rm.Reset();
     RenderView(_vm.GetCurrentViewIndex());
 }