本节主要讲使用现有点创建B曲面的ufun函数UF_MODL_create_surf_from_cloud,这些点可以按任何顺序出现,但是必须有足够的点来定义平面。
先看实例效果图:

1、函数结构
int UF_MODL_create_surf_from_cloud
(int point_cnt,
double cloud [] [3],
double csys_matrix [2] [3],
double bnd_corners [4] [3],
int U_degree,
int V_degree,
int U_patches,
int V_patches,
int corner_switch,
double * average_error,
double * max_error,
int * max_error_index,
tag_t * surface_tag)
2、实例源码
#include <stdio.h>
#include <uf.h>
#include <uf_modl.h>
#define UF_CALL(X) (report( __FILE__, __LINE__, #X, (X)))

本文介绍了如何利用ufun函数UF_MODL_create_surf_from_cloud从点云数据创建B曲面。该函数允许点按任意顺序排列,只要足够定义平面。示例代码展示了如何调用此函数,设置参数如点的数量、曲面的UV度数和分区,以及处理边界角。当bnd_corners指针为NULL时,边界将默认为包含所有点的最小矩形。

1127

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



