Exemplo n.º 1
0
        /// <summary>
        /// 获取圆台特征
        /// </summary>
        /// <param name="circles"></param>
        /// <returns></returns>
        public static List <CircularFaceList> GetStepList(List <AbstractCircleFace> circles)
        {
            bool isok = false;
            List <CircularFaceList> stepList = new List <CircularFaceList>();

            foreach (AbstractCircleFace af in circles)
            {
                if (af.IsStep)
                {
                    if (stepList.Count == 0)
                    {
                        CircularFaceList list = new CircularFaceList();
                        list.IsInThisStep(af);
                        stepList.Add(list);
                        continue;
                    }
                    foreach (CircularFaceList cl in stepList)
                    {
                        if (cl.IsInThisStep(af))
                        {
                            isok = true;
                            break;
                        }
                    }
                    if (!isok)
                    {
                        CircularFaceList list = new CircularFaceList();
                        list.IsInThisStep(af);
                        stepList.Add(list);
                    }
                    isok = false;
                }
            }
            return(stepList);
        }
Exemplo n.º 2
0
 public HoleBuilder(CircularFaceList cir)
 {
     this.List = cir;
     CylFeater = this.List.GetCylinderFeaters();
 }
Exemplo n.º 3
0
 public StepBuilder(CircularFaceList cir)
 {
     this.List = cir;
     CylFeater = this.List.GetCylinderFeaters();
     CylFeater.Sort();
 }