예제 #1
0
        public override bool Read(GH_IReader reader)
        {
            this.modes = (g3.MarchingCubes.RootfindingModes)reader.GetInt32("Modes");
            this.steps = reader.GetInt32("steps");

            return(base.Read(reader));
        }
예제 #2
0
 private void Menu_PanelTypeChanged(object sender, EventArgs e)
 {
     if (sender is ToolStripMenuItem item && item.Tag is "RootMode")
     {
         modes = (g3.MarchingCubes.RootfindingModes)Enum.Parse(typeof(g3.MarchingCubes.RootfindingModes), item.Text, true);
     }
     this.ExpireSolution(true);
 }