예제 #1
0
 public LoftForms() : base("LoftForms", "LoftForms", "Add LoftForm from Reference Points", "Extra", "Hummingbird")
 {
     this.loftMode = LoftMode.Points;
     this.Menu_PointsClicked(null, null);
     this.Message = "Ref Points";
     this.Hidden  = false;
 }
예제 #2
0
        public override bool Read(GH_IReader reader)
        {
            int num = 2;

            reader.TryGetInt32("LoftMode", ref num);
            this.loftMode = (LoftMode)num;
            return(base.Read(reader));
        }
예제 #3
0
 private void Menu_LoftClicked(object sender, EventArgs e)
 {
     if (this.loftMode != LoftMode.Loft)
     {
         this.RecordUndoEvent("Loft");
         this.loftMode = LoftMode.Loft;
         this.ExpireSolution(true);
     }
 }
예제 #4
0
 private void Menu_PointsClicked(object sender, EventArgs e)
 {
     if (this.loftMode != LoftMode.Points)
     {
         this.RecordUndoEvent("Ref Points");
         this.loftMode = LoftMode.Points;
         this.ExpireSolution(true);
     }
 }