Beispiel #1
0
 void Save2DSurface(string filename)
 {
     try
     {
         List <DwgEntity> entityList = new List <DwgEntity>();
         var surface = model2D.GetSurface();
         for (int i = 0; i < surface.Values.GetUpperBound(0) - 1; i++)
         {
             for (int j = 0; j < surface.Values.GetUpperBound(1) - 1; j++)
             {
                 double  x1   = meshSize * i;
                 double  y1   = meshSize * j;
                 double  z1   = surface.Values[i, j].Depth;
                 double  x2   = meshSize * i + 1;
                 double  y2   = meshSize * j;
                 double  z2   = surface.Values[i + 1, j].Depth;
                 DXFLine line = new DXFLine(x1, y1, z1, x2, y2, z2);
                 entityList.Add(line);
             }
         }
         DxfFileBuilder.Save(entityList, filename);
     }
     catch (Exception)
     {
         throw;
     }
 }
 public void abmachsim2d_buildSurfaceFromPath_surfOK()
 {
     initParms();
     initPath();
     initSurface();
     AbmachSimModel2D       model        = new AbmachSimModel2D(surface, surface, path, parms);
     ISurface <AbmachPoint> modelSurface = model.GetSurface();
     bool ptOK = false;
 }