示例#1
0
            public virtual void ReadChildData(BinaryReader reader)
            {
                int x = 0;

                for (x = 0; (x < _inertialMatrixAndInverse.Count); x = (x + 1))
                {
                    InertialMatrixAndInverse.Add(new InertialMatrixBlockBlock());
                    InertialMatrixAndInverse[x].Read(reader);
                }
                for (x = 0; (x < _inertialMatrixAndInverse.Count); x = (x + 1))
                {
                    InertialMatrixAndInverse[x].ReadChildData(reader);
                }
                for (x = 0; (x < _poweredMassPoints.Count); x = (x + 1))
                {
                    PoweredMassPoints.Add(new PoweredMassPointBlockBlock());
                    PoweredMassPoints[x].Read(reader);
                }
                for (x = 0; (x < _poweredMassPoints.Count); x = (x + 1))
                {
                    PoweredMassPoints[x].ReadChildData(reader);
                }
                for (x = 0; (x < _massPoints.Count); x = (x + 1))
                {
                    MassPoints.Add(new MassPointBlockBlock());
                    MassPoints[x].Read(reader);
                }
                for (x = 0; (x < _massPoints.Count); x = (x + 1))
                {
                    MassPoints[x].ReadChildData(reader);
                }
            }
示例#2
0
 public void ReadChildData(BinaryReader reader)
 {
     for (int x = 0; x < _inertialMatrixAndInverse.Count; x++)
     {
         InertialMatrixAndInverse.AddNew();
         InertialMatrixAndInverse[x].Read(reader);
     }
     for (int x = 0; x < _inertialMatrixAndInverse.Count; x++)
     {
         InertialMatrixAndInverse[x].ReadChildData(reader);
     }
     for (int x = 0; x < _poweredMassPoints.Count; x++)
     {
         PoweredMassPoints.AddNew();
         PoweredMassPoints[x].Read(reader);
     }
     for (int x = 0; x < _poweredMassPoints.Count; x++)
     {
         PoweredMassPoints[x].ReadChildData(reader);
     }
     for (int x = 0; x < _massPoints.Count; x++)
     {
         MassPoints.AddNew();
         MassPoints[x].Read(reader);
     }
     for (int x = 0; x < _massPoints.Count; x++)
     {
         MassPoints[x].ReadChildData(reader);
     }
 }