|
本帖最后由 f1405602 于 2023-10-20 16:27 编辑
% i' N- J0 h, c0 l+ e d% K! c( a+ Z9 I. W% r6 X% z7 k: p/ F, e# {
double askFaceArea(tag_t objTag)
k7 V1 K* J8 P, g. l" m{* @- Z* ?, X& `8 O" P* M) g1 m
string libgeom = GetugInstallPath() + "libgeom.dll";: d, _; |: g' d: D- [
char library_name[256] = { '\0' };
4 I4 V! | @- F strcpy(library_name, libgeom.c_str());2 o; |; s/ g! b- F5 o
typedef double(*load_ufusr_f_p_t)(unsigned int v1, double v2);//定义传参6 U, e- C3 o9 m8 x' e( {
load_ufusr_f_p_t MEASURE_ask_face_area = NULL;( m+ F" a2 i9 }3 Z
UF_load_library(library_name, "?MEASURE_ask_face_area@@YANIN@Z", (UF_load_f_p_t *)&MEASURE_ask_face_area);8 n( O/ d( [7 h( n" P4 e9 `
if (MEASURE_ask_face_area != NULL)' }/ Z3 Z! M9 D# [2 v
return MEASURE_ask_face_area(objTag, 0.001);# {5 R! h5 P( _1 E' {0 I5 h9 [# b
else7 o1 U" g7 O8 G3 u; ?( w
return 0;' w4 w- r Z/ a. |7 O" ?% E6 N1 A
}* D' A5 O2 F/ i& N; {
0 @$ m# H' {0 M |
|