Пример #1
0
        private void SetSubFrame()
        {
            for (int c = 0; c < nodeGrid.Count; c++)
            {
                for (int d = 0; d < nodeGrid[c].Count; d++)
                {
                    if (d < nodeGrid[c].Count - 1)
                    {
                        FrameMember frameMember = new FrameMember(nodeGrid[c][d], nodeGrid[c][d + 1], meshnodes[c][d], meshnodes[c][d + 1], CavePanels);
                        if (frameMember.frameLine.Length > 0)
                        {
                            subFrame.Add(frameMember);
                        }
                    }

                    if (c < nodeGrid.Count - 1)
                    {
                        FrameMember frameMember = new FrameMember(nodeGrid[c][d], nodeGrid[c + 1][d], meshnodes[c][d], meshnodes[c + 1][d], CavePanels);
                        if (frameMember.frameLine.Length > 0)
                        {
                            subFrame.Add(frameMember);
                        }
                    }
                }
            }
        }
Пример #2
0
 private void AddFrameLine(FrameMember frameMember, string layer)
 {
     if (frameMember.AngleCompliance)
     {
         file.Objects.AddLine(frameMember.frameLine, layerAttributes[layer]);
     }
     else
     {
         file.Objects.AddLine(frameMember.frameLine, layerAttributes["SUB FRAME ANGLE COMPLIANCE FAIL"]);
     }
     //file.Objects.AddLine(frameMember.shiftLine, layerAttributes["CHECK SUB FRAME DISTANCE FROM MESH"]);
 }