iCAx开思工具箱

标题: 【求助】如何等弧长取点 [打印本页]

作者: liyan    时间: 2004-6-30 09:31
标题: 【求助】如何等弧长取点
各位老大帮帮忙,看看ug中如何等弧长取点啊,好像在ug15中有过这种函数(给一条封闭曲线,如何获得其等分点?等参数取点好像无法做到)
  
给个方法也行啊
作者: windcc    时间: 2004-6-30 09:58
这个偶曾经用了一种很麻烦的方法解决的,不是很好。就是直接计算角度,等分角度。自己计算的。
cos(A)*i+j+sin(A)*k
具体还得调节一下,就是一个角度变换的问题。我不清楚ug中有没有类似的算角度的函数,我想可能有,但是没找到
作者: dylanchou    时间: 2004-7-26 16:45
    Evaluator evaluator = curve->askEvaluator ( );
  
    // Construct an output array to hold the points
    std::vector < Point3 > points ( n_points );
  
    // Get the limits of the evaluator to determine the delta parameter,
    // and to inquire the parameter at which to start the iteration
    Interval interval = evaluator.askLimits ( );
    double   delta = interval.askLength ( ) / ( n_points - 1 );
  
    // Iterate to get all the points
    int      indx;
    double   param;
    for ( indx = 0, param = interval.getStart ( );
          indx < n_points;
          indx++, param += delta )
    {
        // Evaluate the point at the parameter and store the point in the output array.
        points [ indx ] = evaluator.evaluatePoint ( param );
    }
  
    return points;
作者: fourwood    时间: 2004-7-27 11:07
终于看到一个用UG/OPEN++的高手了
作者: dylanchou    时间: 2004-7-27 12:17
fourwood wrote:
终于看到一个用UG/OPEN++的高手了

  
不好意思,也是初学。例程而已。
作者: Mimic    时间: 2004-9-23 14:21
我当时是调用GRIP 程序来实现的啊,呵呵




欢迎光临 iCAx开思工具箱 (https://t.icax.org/) Powered by Discuz! X3.3