/// <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)); } } } }
/// <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>()); }