UF_MODL_init_string_list (&s_guide);
UF_MODL_create_string_list(1,1,&s_guide);
s_guide.num = 1;
s_guide.dir[0] = 1;
s_guide.string[0] = 1;
s_guide.id[0] = guide_line_tag1;
UF_MODL_init_string_list(&s_section);
UF_MODL_create_string_list(1, 4, &s_section);
s_section.num = 1;
s_section.string[0] = 4;
s_section.dir[0] = 1;
s_section.id[0] = section_line_tag1;
s_section.id[1] = section_line_tag2;
s_section.id[2] = section_line_tag3;
s_section.id[3] = section_line_tag4;
UF_MODL_init_string_list(&s_spine);
UF_MODL_create_string_list(0, 0, &s_spine);
s_spine.num = 0;
orientation.method = 4;
scaling.method = 1;
scaling.value[0] = 1.0;
UF_MODL_create_sweep(&s_guide, &s_section,&s_spine,&orientation,&scaling, &alignment, &inter,&body_type, UF_NULLSIGN, tol, &body_obj_id);
UF_MODL_free_string_list(&s_guide);
UF_MODL_free_string_list (&s_section);
UF_MODL_free_string_list (&s_spine);
本人也是初学者,上面例子是我已经实现了的一个简单例子。不过这个函数中还有不少参数我没摸透。例如这函数中扫略时截面线必须位于引导线的一端,否则只能扫略一侧。还有就是不知道如何设置多个截面形状,望各位已经用过此函数的高手多多之指点。 |