UG OPENAPI 取最小距离

2021-03-12 02:42

阅读:358

标签:坐标   imu   pen   api   obj   mdi   min   位置   最小   

c#
public double AskMinimumDist(UFSession theUFSession,Tag obj1, Tag obj2)
{
      int guess1_given;
      double[] guess1 = { 0.0, 0.0, 0.0 };
      int guess2_given;
      double[] guess2 = { 1.0, 1.0, 1.0 };
      double min_dist;//最小距离
      double[] pt_on_obj1 = { 0.0, 0.0, 0.0 };//距离最小位置的点坐标1
      double[] pt_on_obj2 = { 0.0, 0.0, 0.0 };//距离最小位置的点坐标2
      guess1_given = 0;
      guess2_given = 0;
      theUFSession.Modl.AskMinimumDist(obj1, obj2, guess1_given, guess1, guess2_given, guess2, out min_dist, pt_on_obj1, pt_on_obj2);
      return min_dist;
}

UG OPENAPI 取最小距离

标签:坐标   imu   pen   api   obj   mdi   min   位置   最小   

原文地址:https://www.cnblogs.com/feiyangkf/p/14515683.html


评论


亲,登录后才可以留言!