public override void UpdateSpecify(UIBlock ui)
 {
     if (ui is SpecifyVector)
     {
         SpecifyVector sv = ui as SpecifyVector;
         sv.Vector = this.Matr.GetZAxis();
         sv.Point  = this.CenterPt;
     }
 }
示例#2
0
        public static VectorResult GetVector(string title = "Specify Vector", string label = "Vector")
        {
            BlockForm     form   = new BlockForm(title);
            SpecifyVector vector = new SpecifyVector {
                Label = label
            };

            form.AddBlocks(new General[] { vector });
            return(new VectorResult(form.Show(DialogMode.Edit), vector.Origin, vector.Direction));
        }