|
7 ?7 [: n3 J* z2 j$ c- i0 @5 i在ug中直接建立一个椭球体,然后用UF_MODL_create_isocurve可以在上面生成等参数线,但对椭球体裁剪掉一半,还是获取的sphere面的标识,却不能生成参数线是怎么回事啊。
$ n( W/ B" v5 I& z4 W( \+ q. }1 ~& v7 K4 f
部分代码如下:7 W5 {2 h) F- x. D4 W5 U' T; z
其中array_tag[0]的类型为sphere。大家帮帮忙啊!9 ]7 y, L0 l1 q- `! _' ^+ ^, \) w
UF_MODL_ask_object(70,0,&next_tag);
# R+ ` {" c( V) ^if(next_tag!=NULL_TAG)2 F8 }( F# {5 a: D U7 i
{
+ y s( {0 Z: A! J7 q$ j UF_MODL_create_list(&feature_tag_list);7 y, X S$ r; z( S' K5 ^. y1 S" ~" s
UF_MODL_ask_body_feats(next_tag,&feature_tag_list);! w! W) a* E8 @0 ?: |
UF_MODL_ask_list_count(feature_tag_list,&count);
Y* e5 G9 y& r* h( d) O for(n=0;n<count;n++). v; q8 e0 m/ p* Q# K" Z: v5 n. f
{7 } [8 a8 m# a7 Y0 ~% u
UF_MODL_ask_list_item(feature_tag_list,n,&feat_tag);/ d. x# z6 z' n0 e: e
UF_MODL_ask_feat_type(feat_tag,&feat_type);
3 w; s: t$ r( x7 x9 A$ s# P0 ~ array_tag[n]=feat_tag; i$ y# q8 u9 h2 e7 [* X
fprintf(fp,"\n特征 %d 的id=%u,其类型为%s\n",n,feat_tag,feat_type);
6 t* }/ v# K8 O, n1 s }2 G C: R2 j! W
UF_MODL_delete_list(&feature_tag_list); 0 E H, V( J! o& }6 [, v
}% A1 `, E& f0 K- o8 @$ [
UF_MODL_ask_feat_body (array_tag[0], &face);
& T5 ?) Y1 z: B UF_MODL_create_isocurve(face,1,0.6,0.01,&pcurve,&cnt); |
|