public bool StartSlice(Object3d obj)
        {
            try
            {
                // make sure we've got new slicedata
                m_data             = new SliceData();
                SliceModule.m_data = m_data;
                //set the target object
                SliceModule.m_data.m_obj = obj;

                //start the thread
                m_running   = true;
                m_runthread = new Thread(run);
                m_runthread.Start();
            }
            catch (Exception ex)
            {
                DebugLogger.Instance().LogError(ex.Message);
            }
            return(false);
        }
示例#2
0
        public bool StartSlice(Object3d obj)
        {
            try
            {
                // make sure we've got new slicedata
                m_data = new SliceData();
                SliceModule.m_data = m_data;
                //set the target object
                SliceModule.m_data.m_obj = obj;

                //start the thread
                m_running = true;
                m_runthread = new Thread(run);
                m_runthread.Start();
            }
            catch (Exception ex)
            {
                DebugLogger.Instance().LogError(ex.Message);
            }
            return false;
        }