示例#1
0
 /// <summary>
 /// 获取圆柱特征
 /// </summary>
 public void GetStepBuilder()
 {
     if (holeBuilders.Count == 0)
     {
         List <CircularFaceList> step = CircularCollection.GetStepList(this.circleFaces);
         foreach (CircularFaceList cl in step)
         {
             if (cl.IsCylinder())
             {
                 steps.Add(new StepBuilder(cl));
             }
         }
     }
 }
示例#2
0
 /// <summary>
 /// 获取孔特征
 /// </summary>
 public List <HoleBuilder> GetHoleBuilder()
 {
     if (holeBuilders.Count == 0)
     {
         List <CircularFaceList> hole = CircularCollection.GetHoleList(this.circleFaces);
         foreach (CircularFaceList cl in hole)
         {
             if (cl.IsCylinder())
             {
                 holeBuilders.Add(new HoleBuilder(cl));
             }
         }
         return(holeBuilders);
     }
     return(new List <HoleBuilder>());
 }