Esempio n. 1
0
 private bool RadiusInput_SetLength(double length)
 {
     validResult = false;
     if (shell != null && length > 0.0)
     {
         Parametric pm = new Parametric(shell);
         bool       ok = false;
         if (isFillet)
         {
             ok = pm.ModifyFilletRadius(facesWithRadius, length);
         }
         else
         {
             ok = pm.ModifyRadius(facesWithRadius, length);
         }
         if (ok)
         {
             if (pm.Apply())
             {
                 Shell sh = pm.Result();
                 ActiveObject = sh;
                 validResult  = true;
                 return(true);
             }
             else
             {
                 ActiveObject = shell.Clone();
                 return(false);
             }
         }
     }
     return(false);
 }