Example #1
0
 public void MergeFrom(Human other)
 {
     if (other == null)
     {
         return;
     }
     if (other.nose_ != null)
     {
         if (nose_ == null)
         {
             nose_ = new global::Joint();
         }
         Nose.MergeFrom(other.Nose);
     }
     if (other.neck_ != null)
     {
         if (neck_ == null)
         {
             neck_ = new global::Joint();
         }
         Neck.MergeFrom(other.Neck);
     }
     if (other.rShoulder_ != null)
     {
         if (rShoulder_ == null)
         {
             rShoulder_ = new global::Joint();
         }
         RShoulder.MergeFrom(other.RShoulder);
     }
     if (other.rElbow_ != null)
     {
         if (rElbow_ == null)
         {
             rElbow_ = new global::Joint();
         }
         RElbow.MergeFrom(other.RElbow);
     }
     if (other.rWrist_ != null)
     {
         if (rWrist_ == null)
         {
             rWrist_ = new global::Joint();
         }
         RWrist.MergeFrom(other.RWrist);
     }
     if (other.lShoulder_ != null)
     {
         if (lShoulder_ == null)
         {
             lShoulder_ = new global::Joint();
         }
         LShoulder.MergeFrom(other.LShoulder);
     }
     if (other.lElbow_ != null)
     {
         if (lElbow_ == null)
         {
             lElbow_ = new global::Joint();
         }
         LElbow.MergeFrom(other.LElbow);
     }
     if (other.lWrist_ != null)
     {
         if (lWrist_ == null)
         {
             lWrist_ = new global::Joint();
         }
         LWrist.MergeFrom(other.LWrist);
     }
     if (other.rHip_ != null)
     {
         if (rHip_ == null)
         {
             rHip_ = new global::Joint();
         }
         RHip.MergeFrom(other.RHip);
     }
     if (other.rKnee_ != null)
     {
         if (rKnee_ == null)
         {
             rKnee_ = new global::Joint();
         }
         RKnee.MergeFrom(other.RKnee);
     }
     if (other.rAnkle_ != null)
     {
         if (rAnkle_ == null)
         {
             rAnkle_ = new global::Joint();
         }
         RAnkle.MergeFrom(other.RAnkle);
     }
     if (other.lHip_ != null)
     {
         if (lHip_ == null)
         {
             lHip_ = new global::Joint();
         }
         LHip.MergeFrom(other.LHip);
     }
     if (other.lKnee_ != null)
     {
         if (lKnee_ == null)
         {
             lKnee_ = new global::Joint();
         }
         LKnee.MergeFrom(other.LKnee);
     }
     if (other.lAnkle_ != null)
     {
         if (lAnkle_ == null)
         {
             lAnkle_ = new global::Joint();
         }
         LAnkle.MergeFrom(other.LAnkle);
     }
     if (other.rEye_ != null)
     {
         if (rEye_ == null)
         {
             rEye_ = new global::Joint();
         }
         REye.MergeFrom(other.REye);
     }
     if (other.lEye_ != null)
     {
         if (lEye_ == null)
         {
             lEye_ = new global::Joint();
         }
         LEye.MergeFrom(other.LEye);
     }
     if (other.rEar_ != null)
     {
         if (rEar_ == null)
         {
             rEar_ = new global::Joint();
         }
         REar.MergeFrom(other.REar);
     }
     if (other.lEar_ != null)
     {
         if (lEar_ == null)
         {
             lEar_ = new global::Joint();
         }
         LEar.MergeFrom(other.LEar);
     }
     if (other.Confidence != 0F)
     {
         Confidence = other.Confidence;
     }
 }