Exemple #1
0
        public static UnmanagedHistory ToUnmanagedHistory(this PhotonHistory histptr)
        {
            UnmanagedHistory unmanagedHistory = new UnmanagedHistory();

            //UnmanagedIO.Assign1DPointer(ref histptr.xh, ref unmanagedHistory.xh);
            //UnmanagedIO.Assign1DPointer(ref histptr.yh, ref unmanagedHistory.yh);
            //UnmanagedIO.Assign1DPointer(ref histptr.zh, ref unmanagedHistory.zh);
            //UnmanagedIO.Assign1DPointer(ref histptr.uxh, ref unmanagedHistory.uxh);
            //UnmanagedIO.Assign1DPointer(ref histptr.uyh, ref unmanagedHistory.uyh);
            //UnmanagedIO.Assign1DPointer(ref histptr.uzh, ref unmanagedHistory.uzh);
            //UnmanagedIO.Assign1DPointer(ref histptr.weight, ref unmanagedHistory.weight);
            //UnmanagedIO.Assign1DPointer(ref histptr.pert_wt, ref unmanagedHistory.pert_wt);
            //UnmanagedIO.Assign1DPointer(ref histptr.path_length, ref unmanagedHistory.path_length);
            //UnmanagedIO.Assign1DPointer(ref histptr.boundary_col, ref unmanagedHistory.boundary_col);
            //unmanagedHistory.num_pts_stored = histptr.num_pts_stored;
            //unmanagedHistory.cum_path_length = histptr.cum_path_length;
            return(unmanagedHistory);
        }
 public static extern void RunUnmanagedMC(ref UnmanagedPhoton unmanagedPhoton,
                                          ref UnmanagedTissue unmanagedTissue, ref UnmanagedSourceDefinition unmanagedSourceDefinition,
                                          ref UnmanagedOutput unmanagedOutput, ref UnmanagedHistory unmanagedHistory,
                                          ref UnmanagedFlags unmanagedFlags);