示例#1
0
 public override OpStatus Apply()
 {
     if (space == CoordSpace.SceneCoords)
     {
         Frame3f localF = SceneTransforms.SceneToObject(Target, toFrame);
         Frame3f setF   = Target.GetLocalFrame(CoordSpace.ObjectCoords).FromFrame(localF);
         Target.RepositionPivot(setF);
     }
     else
     {
         Target.RepositionPivot(toFrame);
     }
     return(OpStatus.Success);
 }