/// <summary> /// 获取最小包络矩形,旋转移动到坐标原点位置 /// </summary> /// <param name="pm"></param> /// <returns></returns> public PlateModel GetMinPlate(PlateModel pm) { RectHelper rect = new RectHelper(); Dictionary <string, object> dic = rect.MinRect(pm.OutModel.ExpandPoint); PlateModel pmnew = RotateAndMove(pm, Convert.ToSingle(dic["angle"])); pmnew.Rect = GetRect(pmnew.OutModel.ExpandPoint); return(pmnew); }