Example #1
0
 public void AutoRibsGenerate()
 {
     Children.Where(x => x is Rib).ToList().All(i => Children.Remove(i));
     for (int i = 0; i < RibCount.Value; i++)
     {
         var wr = new Rib(this);
         wr.Parent.Value   = this;
         wr.Chord.Value    = MaxChord.Value - (MaxChord.Value - MinChord.Value) * i / (RibCount.Value - 1);
         wr.LocalPos.Value = new Pos(Length.Value * i / (RibCount.Value - 1), 0);
     }
 }
Example #2
0
 public RibCap(Rib parent) : this()
 {
     parent.RibCap.Value = this;
 }