求助::{
//-------------------[6] Chamfer 4 edges of block2-------------------
uf_list_p_t edge_list1,edge_list2;
tag_t chamfer_id,edge;
double end_point[3] = {0, 0,0};
double direction_z[ 3 ]= {0, 0, 1};
int dir_edge;
char * angle1="45.0";
int subtype=1,*is_parallel=NULL;
UF_MODL_create_list([$edge_list1)]
UF_MODL_create_list([$edge_list2)]
UF_MODL_ask_feat_edges (block2, [$edge_list1 )]
UF_MODL_ask_list_count(edge_list1,[$num)]
for (i=0; i<num; i++)
{
UF_MODL_ask_list_item(edge_list1,i,[$edge)]
UF_MODL_get_curve_edge_direction (end_point,edge,[$dir_edge )]
UF_VEC3_is_parallel(dir_edge,direction_z,0.0001,[$is_parallel)]
if(is_parallel)
UF_MODL_put_list_item(edge_list2,edge);
}
UF_MODL_delete_list([$edge_list1)]
UF_MODL_create_chamfer (subtype, "2", "2", angle1,edge_list2,[$chamfer_id)]
UF_MODL_delete_list([$edge_list2)]
编译错误:error C2664: 'UF_VEC3_is_parallel' : cannot convert parameter 1 from 'int' to 'const double []'
请问用UF_MODL_get_curve_edge_direction 得到的edge的方向dir_edge是何类型,是不是不能用它得到block边的方向? |