Exemple #1
0
        private void planeCutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TriMeshPlaneCut cut   = new TriMeshPlaneCut(Mesh);
            Plane           plane = GlobalSetting.ClipPlaneSetting.Plane0;

            if (GlobalSetting.ClipPlaneSetting.Enable0)
            {
                plane = GlobalSetting.ClipPlaneSetting.Plane0;
                cut.Cut(plane);
            }
            if (GlobalSetting.ClipPlaneSetting.Enable1)
            {
                plane = GlobalSetting.ClipPlaneSetting.Plane1;
                cut.Cut(plane);
            }
            if (GlobalSetting.ClipPlaneSetting.Enable2)
            {
                plane = GlobalSetting.ClipPlaneSetting.Plane2;
                cut.Cut(plane);
            }
            if (GlobalSetting.ClipPlaneSetting.Enable3)
            {
                plane = GlobalSetting.ClipPlaneSetting.Plane3;
                cut.Cut(plane);
            }
            if (GlobalSetting.ClipPlaneSetting.Enable4)
            {
                plane = GlobalSetting.ClipPlaneSetting.Plane4;
                cut.Cut(plane);
            }
            if (GlobalSetting.ClipPlaneSetting.Enable5)
            {
                plane = GlobalSetting.ClipPlaneSetting.Plane5;
                cut.Cut(plane);
            }
            OnChanged(EventArgs.Empty);
        }
Exemple #2
0
 private void planeCutToolStripMenuItem_Click(object sender, EventArgs e)
 {
     TriMeshPlaneCut cut=new TriMeshPlaneCut(Mesh);
     Plane plane = GlobalSetting.ClipPlaneSetting.Plane0; 
     
     if(GlobalSetting.ClipPlaneSetting.Enable0)
     {
       plane=GlobalSetting.ClipPlaneSetting.Plane0; 
       cut.Cut(plane);
     }
     if (GlobalSetting.ClipPlaneSetting.Enable1)
     {
         plane = GlobalSetting.ClipPlaneSetting.Plane1;
         cut.Cut(plane);
     }
     if (GlobalSetting.ClipPlaneSetting.Enable2)
     {
         plane = GlobalSetting.ClipPlaneSetting.Plane2;
         cut.Cut(plane);
     }
     if (GlobalSetting.ClipPlaneSetting.Enable3)
     {
         plane = GlobalSetting.ClipPlaneSetting.Plane3;
         cut.Cut(plane);
     }
     if (GlobalSetting.ClipPlaneSetting.Enable4)
     {
         plane = GlobalSetting.ClipPlaneSetting.Plane4;
         cut.Cut(plane);
     }
     if (GlobalSetting.ClipPlaneSetting.Enable5)
     {
         plane = GlobalSetting.ClipPlaneSetting.Plane5;
         cut.Cut(plane);
     }
     OnChanged(EventArgs.Empty);
 }