|
马上注册,结交更多同行朋友,交流,分享,学习。
您需要 登录 才可以下载或查看,没有帐号?注册
x
//代码如下:
#include <stdio.h>
#include <uf.h>
#include <uf_defs.h>
#include <uf_exit.h>
#include <uf_ui.h>
#include <uf_styler.h>
#include <uf_mb.h>
#include <time.h>
#include <windows.h>
#include <string.h>
#include <uf_modl.h>
#include <uf_part.h>
#include <uf_obj.h>
#include <uf_object_types.h>
#include <uf_disp.h>
#include <uf_csys.h>
#include "Replace.h"
extern "C" DllExport void ufsta( char *param, int *returnCode, int rlen )
{
/* Initialize the API environment */
int errorCode = UF_initialize();
if ( 0 == errorCode )
{
/* TODO: Add your application code here */
char *message1 = "Select Target Faces";
char *message2 = "Select Tool Face";
int rsp1, rsp2, count=0;
int num_non_blend=0;
int irc = 0,response;
int k = 0;
double cursor[3];
tag_t *target;
tag_t *non_blend_faces;
tag_t tool_face = NULL_TAG;
tag_t feature_tag = NULL_TAG;
tag_t view;
logical reverse_direction=FALSE;
UF_UI_selection_options_t opts;
UF_UI_mask_t mask = {UF_face_type, 0, 0};
opts.other_options = 0;
opts.reserved = NULL;
opts.num_mask_triples = 1;
opts.scope = UF_UI_SEL_SCOPE_WORK_PART;
opts.mask_triples = &mask;
UF_UI_select_by_class( message1,&opts,&rsp1,&count,&target );
if (rsp1 == 3)
{
for (k=0; k < count; k++)
{
UF_DISP_set_highlight(target[k],0);
}
opts.scope = UF_UI_SEL_SCOPE_ANY_IN_ASSEMBLY;
irc = UF_UI_select_single(message2,&opts,&response,
&tool_face,cursor,&view);
if (response == 4 || response == 5)
{
UF_DISP_set_highlight(tool_face,0);
int resp = UF_MODL_create_replace_face(
target,
count,
non_blend_faces,
num_non_blend,
tool_face,
reverse_direction,
&feature_tag );
char message[256];
if(resp)
{
sprintf(message,"%d", resp);
uc1601(message, 1);
UF_get_fail_message(resp, message);
uc1601(message, 1);
}
}
}
/* Terminate the API environment */
errorCode = UF_terminate();
}
}
extern "C" int ufusr_ask_unload( void )
{
return( UF_UNLOAD_IMMEDIATELY );
}
--------------------Configuration: Replace - Win32 Debug--------------------
Compiling...
Replace.cpp
E:\UGOPEN\QuickElectrodeV7\Replace\Replace.cpp(70) : error C2065: 'UF_MODL_create_replace_face' : undeclared identifier
执行 cl.exe 时出错.
Replace.dll - 1 error(s), 0 warning(s) |
|