我现在判断边的凸凹性,是自己判断的没有用函数,过交线做了一个辅助平面与两平面相交,通赤判断三者的关系,特别麻烦那个函数是怎么用的



XA
我现在判断边的凸凹性,是自己判断的没有用函数,过交线做了一个辅助平面与两平面相交,通赤判断三者的关系,特别麻烦
那个函数是怎么用的
Z
//判断一个边是否是凹边
bool isConcaveEdge(tag_t t_edge)
{
tag_t t_pkEdge = NULL_TAG;
UF_PS_ask_ps_tag_of_object(t_edge, &t_pkEdge);
if (t_pkEdge == NULL_TAG)
{
return false;
}
HINSTANCE hDll = LoadLibrary("pskernel.dll");
if (NULL != hDll)
{
typedef PK_ERROR_code_t(*PkEdgeAskConvexity)(PK_EDGE_t edge, const PK_EDGE_ask_convexity_o_s *options, PK_EDGE_convexity_t *convexity);
PkEdgeAskConvexity PK_EDGE_ask_convexity = NULL;
PK_EDGE_ask_convexity = (PkEdgeAskConvexity)::GetProcAddress(hDll, "PK_EDGE_ask_convexity");
if (PK_EDGE_ask_convexity != NULL)
{
PK_EDGE_ask_convexity_o_s options;
PK_EDGE_ask_convexity_o_m(options);
PK_EDGE_convexity_t convexity = NULL;
PK_EDGE_ask_convexity((PK_EDGE_t)t_pkEdge, &options, &convexity);
if (convexity == PK_EDGE_convexity_concave_c)
{
return true;
}
}
FreeLibrary(hDll);
}
return false;
}
XA
我看看,谢谢
、宅术技的术技有没
switch (convexity)
{
case PK_EDGE_convexity_concave_c: // 凹
case PK_EDGE_convexity_smooth_ccv_c: // 光顺的凹 内R角
//case PK_EDGE_convexity_smooth_cvx_c: 
*edge_convexity = 1;
break;
case PK_EDGE_convexity_convex_c:
case PK_EDGE_convexity_smooth_cvx_c:
*edge_convexity = 2;
break;
…的你等
UG8.0 UGII文件夹中有pskernel.dll这个文件,里面含有PK函数,要怎么样才能使用里面的函数呢?
调用dll啊
uo yerA✨
上面不是有案例吗
…的你等
我调用了,但是找不到
只要你知道数据结构  想怎么调   就怎么调
…的你等
案例给我看一下了在哪里?
感谢张老师
 Are you真的很ok

相关问题
------分隔线----------------------------
赞.助.商.链.接
赞.助.商.链.接
推荐内容