Пример #1
0
 public Particle(Point3d p, DifferentialGrowth simulation)
 {
     _simulation = simulation;
     _p          = p;
     Index       = _simulation.Particles.Count;
     _simulation.Particles.Add(this);
 }
Пример #2
0
        public Spring(Particle start, Particle end, int i, DifferentialGrowth simulation)
        {
            Start       = start;
            End         = end;
            _simulation = simulation;

            start.Neighbours[1] = end;
            end.Neighbours[0]   = start;
            Update();
            _restLength = Length;
            simulation.Springs.Insert(i, this);
        }