Ejemplo n.º 1
0
    public void StartMarchingCubesThread()
    {
        List <bool[, , ]> segments = m_data.GetSegments();

        Debug.LogError("currently " + segments.Count + " segments");
        foreach (bool[,,] segment in segments)
        {
            Debug.LogError("Running marching cubes");
            MarchingCubesJob marchingCubesJob = new MarchingCubesJob(this, m_data, segment);
            m_runningThreads.Add(marchingCubesJob);
            marchingCubesJob.StartThread();
        }
    }
Ejemplo n.º 2
0
    public void StartMarchingCubesThread2()
    {
        List <bool[, , ]> segments = m_data.GetSegments();

        Debug.LogError("currently " + segments.Count + " segments");
        if (index < segments.Count)
        {
            Debug.LogError("Running marching cubes on segment " + index);
            MarchingCubesJob marchingCubesJob = new MarchingCubesJob(this, m_data, segments[index]);
            m_runningThreads.Add(marchingCubesJob);
            marchingCubesJob.StartThread();
            index++;
        }
        else
        {
            index = 0;
        }
    }