|
马上注册,结交更多同行朋友,交流,分享,学习。
您需要 登录 才可以下载或查看,没有帐号?注册
x
extern DllExport void ufusr( char *parm, int *returnCode, int rlen )
{
/* Initialize the API environment */
if( UF_CALL(UF_initialize()) )
{
/* Failed to initialize */
return;
}
double junk[3],start[3],tangent[3];
tag_t curve;
double cursor [ 3 ];
tag_t view;
int response;
int scope=UF_UI_SEL_SCOPE_NO_CHANGE;
UF_UI_select_with_single_dialog("小Z制造","小Z制造 ",scope,NULL,NULL,&response,&curve, cursor, &view );
UF_DISP_set_highlight(curve,0);
UF_MODL_ask_curve_props(curve, 0.0, start, tangent, junk, junk,junk, junk);
UF_DISP_conehead_attrb_s attrb;
int color=UF_OBJ_RED;
UF_DISP_get_conehead_attrb(&attrb);
attrb.color = color;
UF_DISP_set_conehead_attrb(&attrb);
UF_DISP_conehead(UF_DISP_ALL_ACTIVE_VIEWS, start,tangent, 0);
UF_DISP_reset_conehead_attrb();
UF_CALL(UF_terminate());
}
|
|