public DistributionSquare getDistributionSquare(Scientrace.PhysicalObject3d anObject, int order)
 {
     Scientrace.Parallelogram surface = anObject.getDistributionSurface();
     Scientrace.DistributionSquare ds = new Scientrace.DistributionSquare(0, order, surface.plane.loc, surface.plane.u, surface.plane.v);
     foreach(Scientrace.Spot aSpot in this.spots) {
     ds.addSpot(aSpot.loc);
     }
     return ds;
 }
Exemple #2
0
 public DistributionSquare getDistributionSquare(Scientrace.PhysicalObject3d anObject, int order)
 {
     Scientrace.Parallelogram      surface = anObject.getDistributionSurface();
     Scientrace.DistributionSquare ds      = new Scientrace.DistributionSquare(0, order, surface.plane.loc, surface.plane.u, surface.plane.v);
     foreach (Scientrace.Spot aSpot in this.spots)
     {
         ds.addSpot(aSpot.loc);
     }
     return(ds);
 }
Exemple #3
0
        public void formerPartOfExportAll(Scientrace.Object3dEnvironment env)
        {
            //Calculate data for surface distribution
            foreach (Scientrace.PhysicalObject3d anObject in this.registeredDistributionObjects)
            {
                for (int iorder = 1; iorder <= 3; iorder++)
                {
                    Scientrace.DistributionSquare ds = this.getDistributionSquare(anObject, iorder);
                    double ratio = ds.totalDistribution();
                    //Console.WriteLine("Ratio "+iorder+"th order "+anObject.tag+":"+ratio);
                    TraceJournal.Instance.addExportField("dratio" + anObject.tag + ":n=" + iorder.ToString(), ratio.ToString());
                }

/*				using (writestream = new StreamWriter(path+anObject.tag+".xml")) {
 *                                      Console.WriteLine("MAKE XML HERE");
 *                                      //writestream.Write(ds.exportXML());
 *                              }*/
            }
        }