public AbstractElectrodeCAM(Part pt, UserModel user)
 {
     if (pt == null)
     {
         throw new Exception("传入电极为空!");
     }
     this.pt   = pt;
     this.user = user;
     offser    = new OffsetBodyGapVaule(pt, user);
     Body[] bodys = pt.Bodies.ToArray();
     if (bodys == null || bodys.Length == 0 || bodys.Length > 1)
     {
         throw new Exception("传入电极错误!");
     }
     else
     {
         analysis = new AnalysisElectrodeBody(pt.Bodies.ToArray()[0]);
     }
 }
 public CompterToolName(AnalysisElectrodeBody analysisEle, double eleMinDis)
 {
     this.analysisEle = analysisEle;
     this.eleMinDis   = eleMinDis;
 }