// Token: 0x06000074 RID: 116 RVA: 0x00005500 File Offset: 0x00003700 private static void DetermineCombinedBoundingBox(ItMachineDataWallDB.DbwElementData data) { ItDebug.assert(data != null, "Failure in: "); data.FirstShell.BoxOnPalette = data.FirstShell.Part.getWorldExtents(false).GetTransformed(data.MatWcsToPalette); data.SecondShell.BoxOnPalette = data.SecondShell.Part.getWorldExtents(false).GetTransformed(data.MatWcsToPalette); ItGeBoundBlock3d boxOnPalette = data.FirstShell.BoxOnPalette; ItDebug.assert(boxOnPalette != null && data.SecondShell.BoxOnPalette != null, "Failure in: "); boxOnPalette.extend(data.SecondShell.BoxOnPalette.minPoint); boxOnPalette.extend(data.SecondShell.BoxOnPalette.maxPoint); data.BoxOnPalette = boxOnPalette; }
// Token: 0x060001DF RID: 479 RVA: 0x0000D098 File Offset: 0x0000B298 private ItGeBoundBlock3d GetBoundBlockOfIrons() { ItGeBoundBlock3d itGeBoundBlock3d = null; foreach (List <ItGeCurve3d> list in base.IronSetsSchematic) { foreach (ItGeCurve3d itGeCurve3d in list) { ItGeBoundBlock3d itGeBoundBlock3d2 = itGeCurve3d.orthoBoundBlock(); bool flag = itGeBoundBlock3d == null; if (flag) { itGeBoundBlock3d = itGeBoundBlock3d2; } else { itGeBoundBlock3d.extend(itGeBoundBlock3d2.minPoint).extend(itGeBoundBlock3d2.maxPoint); } } } return(itGeBoundBlock3d); }