根据曲线tag,返回曲线相关信息:弦宽容、弧度、最大步长、点数组的点。
实例返回结果截图如下:

实例创建曲线截图如下:

1、函数结构
int UF_MODL_ask_curve_points
(tag_t curve_id,
double ctol,
double atol,
double stol,
int * numpts,
double * * pts)
2、实例源码
/*
The following example uses a semi-circle as the input curve. The ctol
and stol parameters were chosen so that five coordinates (located at 0,
45, 90, 135, and 180 degrees on the arc) are outputted.
*/
#include <uf.h>
#include <uf_modl.h>
#include <uf_curve.h>
#include <uf_csys.h>
#include <uf_obj.h>
#include <stdio.h>
#define UF_CALL(X) (report( __FILE__, __LINE__, #X, (X)))
static int repo


730

被折叠的 条评论
为什么被折叠?



