public override void CreateSuperBox() { if ((2 * this.disPt.X + this.Offset[0] + this.Offset[1]) <= 0 || (2 * this.disPt.Y + this.Offset[2] + this.Offset[3]) <= 0 || (2 * this.disPt.Z + this.Offset[4] + this.Offset[5]) <= 0) { return; } else { base.ToolingBox = ToolingBoxFeature.CreateToolingBlockBox(this.Matr.GetMatrix3(), this.CenterPt, this.Offset, base.ToolingBox, base.selectionObj.ToArray()); } }
public override void CreateSuperBox() { if (this.disPt.X > this.disPt.Y) { if ((this.disPt.X + this.Offset[2]) <= 0 && (2 * this.disPt.Z + this.Offset[0] + this.Offset[1]) <= 0) { return; } } if (this.disPt.X < this.disPt.Y) { if ((this.disPt.Y + this.Offset[2]) <= 0 && (2 * this.disPt.Z + this.Offset[0] + this.Offset[1]) <= 0) { return; } } else { base.ToolingBox = ToolingBoxFeature.CreateToolingCylinder(this.Matr.GetZAxis(), this.CenterPt, this.Offset, ToolingBox, this.selectionObj.ToArray()); } }