示例#1
0
        public void TestOffsets()
        {
            //Bounds
            Boundary bounds = new Boundary();
            bounds.Shape = MuCell.Model.BoundaryShapes.Cuboid;
            bounds.Width = 10.0f;
            bounds.Height = 10.0f;
            bounds.Depth = 10.0f;

            NutrientField nf = new NutrientField();
            nf.InitialDistribution = InitialNutrientDistribution.DenselyCentredSphere;
            nf.InitialQuantity = 1.0f;
            nf.InitialRadius = 5.0f;
            nf.InitialPosition = new Vector3(0, 0, 0);
            nf.Resolution = 0.5f;
            nf.DiffusionRate = 0f;
            nf.InitField(bounds);
            nf.PrintCubes();
        }