找回密码 注册 QQ登录
一站式解决方案

iCAx开思网

CAD/CAM/CAE/设计/模具 高清视频【积分说明】如何快速获得积分?在线3D打印服务,一键上传,自动报价 
查看: 16948|回复: 5
打印 上一主题 下一主题

UF_MODL_create_replace_face调试不过,急!

[复制链接]
跳转到指定楼层
1
发表于 2008-4-29 18:48:26 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

马上注册,结交更多同行朋友,交流,分享,学习。

您需要 登录 才可以下载或查看,没有帐号?注册

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)
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖 赞一下!赞一下!
2
发表于 2008-4-30 05:33:32 | 只看该作者

马上注册,结交更多同行朋友,交流,分享,学习。

您需要 登录 才可以下载或查看,没有帐号?注册

x
3
发表于 2008-4-30 11:18:03 | 只看该作者

马上注册,结交更多同行朋友,交流,分享,学习。

您需要 登录 才可以下载或查看,没有帐号?注册

x
4
 楼主| 发表于 2008-4-30 12:52:06 | 只看该作者

马上注册,结交更多同行朋友,交流,分享,学习。

您需要 登录 才可以下载或查看,没有帐号?注册

x
5
发表于 2008-4-30 13:18:09 | 只看该作者

马上注册,结交更多同行朋友,交流,分享,学习。

您需要 登录 才可以下载或查看,没有帐号?注册

x
6
 楼主| 发表于 2008-4-30 13:25:13 | 只看该作者

马上注册,结交更多同行朋友,交流,分享,学习。

您需要 登录 才可以下载或查看,没有帐号?注册

x
您需要登录后才可以回帖 登录 | 注册

本版积分规则

3D打印手板模型快速制作服务,在线报价下单!

QQ 咨询|手机版|联系我们|iCAx开思网  

GMT+8, 2024-9-22 05:24 , Processed in 0.024406 second(s), 11 queries , Gzip On, Redis On.

Powered by Discuz! X3.3

© 2002-2024 www.iCAx.org

快速回复 返回顶部 返回列表