Example #1
0
 public point AddPoint()
 {
   point p = new point("point");
   _pfsHandle.AddKeyword(p._keyword);
   this.points.Add(p);
   return p;
 }
Example #2
0
    internal POINTS(PFSSection Section)
    {
      _pfsHandle = Section;

      points = new List<point>();
      int knumber =Section.GetKeywordsNo("point");


      var sectionstring = Section.ToString().Split(new string[]{"\n"}, StringSplitOptions.RemoveEmptyEntries);

     

      for (int i = 1; i < sectionstring.Count()-1; i++)
      {
        var pdata = sectionstring[i].Split(new string[] { "=", "," }, StringSplitOptions.RemoveEmptyEntries);
       var pp =  new point("point");
       pp.Par1 = (int) double.Parse(pdata[1]);
       pp.Par2 = double.Parse(pdata[2]);
       pp.Par3 = double.Parse(pdata[3]);
       pp.Par4 = (int)double.Parse(pdata[4]);

       if (pdata.Count() > 5)
       {
         pp.Par5 = double.Parse(pdata[5]);
         pp.Par6 = (int)double.Parse(pdata[6]);
       }
       points.Add(pp);
      }


      //for (int i = 1; i <= knumber; i++)
      //{
      //  points.Add(new point(Section.GetKeyword("point", i)));
      //}
      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
          default:
            _unMappedSections.Add(sub.Name);
          break;
        }
      }

    }
Example #3
0
 internal M11Point(point P):base(P.Par2, P.Par3)
 {
   _pfsPoint = P;
 }