private bool ReadHistory(Rhino.DocObjects.ReplayHistoryData replay, ref Rhino.DocObjects.ObjRef objref, ref int segmentCount, ref int pointCount)
    {
      if (_historyVersion != replay.HistoryVersion)
        return false;

      objref = replay.GetRhinoObjRef(0);
      if (null == objref)
        return false;

      if (!replay.TryGetInt(1, out segmentCount))
        return false;

      if (!replay.TryGetInt(2, out pointCount))
        return false;

      return true;
    }