示例#1
0
 public CutterST(Core Core)
     : base(Core)
 {
     this.cutter = new MeshCutter();
     this.cutter.Init(512, 512);
     this.newFragments = new HashSet <MeshObject>();
     this.meshToRemove = new HashSet <MeshObject>();
     this.cuttingPlane = new CuttingPlane(Core);
 }
示例#2
0
 public CutterST(Core Core) : base(Core)
 {
     // init cutter
     cutter = new MeshCutter();
     cutter.Init(512, 512);
     newFragments = new HashSet <MeshObject>();
     meshToRemove = new HashSet <MeshObject>();
     cuttingPlane = new CuttingPlane(Core);
 }
示例#3
0
 public CutterST(Core Core) : base(Core)
 {
     // init cutter
     cutter = new MeshCutter();
     cutter.Init(512, 512);
     newFragments = new HashSet <MeshObject>();
     meshToRemove = new HashSet <MeshObject>();
     random       = new System.Random(0);
 }
示例#4
0
 public CutterWorker(Core core, CuttingPlane cuttingPlane)
 {
     this.cutter = new MeshCutter();
     this.cutter.Init(512, 512);
     this.newFragments        = new HashSet <MeshObject>();
     this.meshToRemove        = new HashSet <MeshObject>();
     this.meshSet             = new HashSet <MeshObject>();
     this.cuttingPlane        = cuttingPlane;
     this.core                = core;
     this.thread              = new Thread(new ThreadStart(this.ThreadRun));
     this.thread.IsBackground = true;
     this.thread.Start();
 }
示例#5
0
        public CutterWorker(Core core, System.Random random)
        {
            cutter = new MeshCutter();
            cutter.Init(512, 512);
            newFragments = new HashSet <MeshObject>();
            meshToRemove = new HashSet <MeshObject>();
            meshSet      = new HashSet <MeshObject>();

            this.random = random;
            this.core   = core;

            thread = new Thread(ThreadRun);
            thread.IsBackground = true;
            thread.Start();
        }
示例#6
0
 public PartialSeparator(Core Core) : base(Core)
 {
     // init cutter
     cutter = new MeshCutter();
     cutter.Init(512, 512);
 }