// 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: 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; }