// Token: 0x060002C9 RID: 713 RVA: 0x00010A88 File Offset: 0x0000EC88 public static ItGePoint3d convertToMM(ItGePoint3d point) { double x = Math.Round(point.x.FeetToMeter() * 1000.0 * 1000000.0) / 1000000.0; double y = Math.Round(point.y.FeetToMeter() * 1000.0 * 1000000.0) / 1000000.0; double z = Math.Round(point.z.FeetToMeter() * 1000.0 * 1000000.0) / 1000000.0; return(new ItGePoint3d(x, y, z, null)); }
// Token: 0x060003D0 RID: 976 RVA: 0x00011D38 File Offset: 0x0000FF38 public void TranslateBy(ItGeMatrix3d translation) { ItGePoint3d itGePoint3d = new ItGePoint3d(this.X, this.Y, this.Z, null); itGePoint3d.transformBy(translation); this.X = itGePoint3d.x; this.Y = itGePoint3d.y; this.Z = itGePoint3d.z; }
// Token: 0x0600001B RID: 27 RVA: 0x00002D54 File Offset: 0x00000F54 public static int[] toPointArray(ItGePoint3d point) { return(new int[] { CNCDataBase.convertToMM(point.x), CNCDataBase.convertToMM(point.y), CNCDataBase.convertToMM(point.z) }); }
// Token: 0x06000070 RID: 112 RVA: 0x00005364 File Offset: 0x00003564 private static void DetermineShellTransformations(ItMachineDataWallDB.DbwElementData data) { Action <ItMachineDataWallDB.DbwElementData.Shell, ItGePoint3d, ItGeMatrix3d> action = delegate(ItMachineDataWallDB.DbwElementData.Shell shellData, ItGePoint3d absoluteZero, ItGeMatrix3d matWcsToPalette) { ItGePoint3d minPoint = shellData.BoxOnPalette.minPoint; shellData.ZeroOffset = absoluteZero - minPoint; shellData.Transformation = ItGeMatrix3d.translation(shellData.ZeroOffset) * matWcsToPalette; }; action(data.FirstShell, data.BoxOnPalette.minPoint, data.MatWcsToPalette); action(data.SecondShell, data.BoxOnPalette.minPoint, data.MatWcsToPalette); }
// Token: 0x06000426 RID: 1062 RVA: 0x00012BFC File Offset: 0x00010DFC public void Initialize(ItMachineDataBase machineDataBase, AssemblyInstance assemblyInstance, IEnumerable <RevitElement <Part> > partsList, ItGeMatrix3d matTranslateToOrigin, ItGePoint3d startPoint, ItGeVector3d spanDirection, ItGeVector3d shiftingDirection, Parameter paramProdNo) { double totalThickness = partsList.isNotNull() ? partsList.Sum((RevitElement <Part> part) => machineDataBase.getThickness(part.getLocalExtents(false))) : -1.0; startPoint.transformBy(matTranslateToOrigin); ItGeBoundBlock3d buildingExtents = machineDataBase.getBuildingExtents(assemblyInstance.Document); ProjectCoordinates projectCoordinates = new ProjectCoordinates(); ItGeMatrix3d mat = assemblyInstance.ecs(); ItGeVector3d spanDirection2 = mat * spanDirection; ItGeVector3d shiftingDirection2 = mat * shiftingDirection; ItGePoint3d startPoint2 = mat * startPoint; machineDataBase.setProjectCoordinates(projectCoordinates, startPoint2, buildingExtents, spanDirection2, shiftingDirection2); this.ProductType = machineDataBase.ProductTypeString; this.ElementNo = paramProdNo.AsString(); this.TotalThickness = totalThickness; this.PieceCount = assemblyInstance.assemblyType().instances().Count; this.ProjectCoordinates = projectCoordinates; this.IsInitialized = true; }
// Token: 0x060001BC RID: 444 RVA: 0x0000BE18 File Offset: 0x0000A018 protected static void AddWireToSteelBlock(ItSteel steelBlock, WireItem wire) { ItGePoint3d startPoint = wire.StartPoint; ItGePoint3d point = startPoint + wire.ParentMesh.PosPalette.asVector(); ItGePoint3d itGePoint3d = steelBlock.Offset(point); ItBar itBar = new ItBar(); itBar.ShapeMode = ShapeMode.realistic; itBar.ReinforcementType = wire.ReinforcementType; itBar.SteelQuality = wire.SteelQuality; itBar.PieceCount = 1; itBar.Diameter = wire.WireDiameter; itBar.X = itGePoint3d.x; itBar.Y = itGePoint3d.y; itBar.Z = itGePoint3d.z; itBar.RotZ = SteelGroupElementMeshBase.GetRotZ(wire); itBar.ArticleNo = wire.ArticleNumber; itBar.NoAutoProd = false; SteelGroupElementMeshBase.AddSegmentsToBar(itBar, wire); steelBlock.barList.Add(itBar); }
// Token: 0x060004FA RID: 1274 RVA: 0x00014B90 File Offset: 0x00012D90 public ItGePoint3d Offset(ItGePoint3d point) { return(new ItGePoint3d(point.x - this.X, point.y - this.Y, point.z - this.Z, null)); }