// 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: 0x06000201 RID: 513 RVA: 0x0000DD94 File Offset: 0x0000BF94 public List <ItBar> ToBarList(ItSteel steelBlock, List <List <ItGeCurve3d> > ironSet) { List <ItBar> list = new List <ItBar>(); bool flag = ironSet.none <List <ItGeCurve3d> >(); List <ItBar> result; if (flag) { result = list; } else { bool flag2 = this.RebarBarType == null; if (flag2) { result = list; } else { foreach (List <ItGeCurve3d> list2 in ironSet) { bool flag3 = list2.none <ItGeCurve3d>(); if (!flag3) { double rotZ = 0.0; ItGeCurve3d firstSeg = list2.FirstOrDefault <ItGeCurve3d>(); ItGePoint3d rebarStartPoint = SteelGroupElementRebarBase.GetRebarStartPoint(firstSeg); ItGePoint3d startPoint = steelBlock.Offset(rebarStartPoint); ItBar itBar = this.CreateBarElement(startPoint, rotZ); this.FillSegments(itBar, list2); list.Add(itBar); } } result = list; } } return(result); }