Exemple #1
0
 /// <summary>
 /// 获取(圆锥,R面,球面)最大最小斜率
 /// </summary>
 /// <param name="vec"></param>
 private void AskFace(Vector3d vec)
 {
     Vector3d[] vecs = FaceUtils.AskFaceNormals(this.face);
     foreach (Vector3d temp in vecs)
     {
         double angle = Math.Round(UMathUtils.Angle(vec, temp), 3);
         if (this.MaxSlope <= angle)
         {
             this.MaxSlope = angle;
         }
         if (this.MinSlope >= angle)
         {
             this.MinSlope = angle;
         }
     }
 }