Esempio n. 1
0
        private void GetIsoLinesV2(List <FE> listFE, RSAColor color, double Areq, string layer)
        {
            var z = 0;
            var ListOfIsolines = GeneratorOfIsolines.GetIsoLines(listFE, Areq);

            ListOfIsolines.ForEach(x =>
            {
                List <PolylineVertex> pv = new List <PolylineVertex>();
                x.Nodes.ForEach(y => pv.Add(new PolylineVertex(y.X, y.Y, 0)));
                dxf.AddEntity(new Polyline(pv, x.IsClosed)
                {
                    Color      = new AciColor(Color.FromArgb(color.R, color.G, color.B)),
                    Layer      = GetLayer(layer),
                    Lineweight = Lineweight.W15
                }

                              );
                var n1               = x.Nodes[x.Nodes.Count / 2];
                var n2               = x.Nodes[(x.Nodes.Count + 1) / 2];
                var text             = new MText();
                text.Color           = new AciColor(Color.FromArgb(color.R, color.G, color.B));
                text.Position        = new Vector3(Node.GetMiddleNode(n1, n2).X, Node.GetMiddleNode(n1, n2).Y, 0);
                text.Rotation        = Node.GetDegreeNode(n1, n2);
                text.AttachmentPoint = MTextAttachmentPoint.MiddleCenter;
                text.Height          = 0.1;
                text.Value           = Areq.ToString();
                text.Layer           = GetLayer(layer);
                dxf.AddEntity(text);
            });
        }
Esempio n. 2
0
        private List <FE> TranslateFE(double Areq, A_Type a_Type, List <RSA_FE> Panel, double SkipA)
        {
            List <FE> l = new List <FE>();

            Panel.ForEach(x =>
            {
                var e = new FE();
                e.ConvertFromRSA_FEToFE(x, a_Type);
                l.Add(e);
            });
            var v = new GeneratorOfIsolines(l);

            return(v.GetNewNodesInFE((Areq + SkipA)));
        }