NX9+VS2012 #include <uf.h> #include <uf_curve.h> #include <uf_ui.h> UF_initialize(); //UFUN创建直线 UF_CURVE_line_t Line_coords1; Line_coords1.start_point[0] = 0.0; Line_coords1.start_point[1] = 0.0; Line_coords1.start_point[2] = 0.0; Line_coords1.end_point[0] = 100.0; Line_coords1.end_point[1] = 100.0; Line_coords1.end_point[2] = 100.0; tag_t Line1 = NULL_TAG; UF_CURVE_create_line(&Line_coords1, &Line1); UF_CURVE_line_t Line_coords2; Line_coords2.start_point[0] = 0.1; Line_coords2.start_point[1] = 0.0; Line_coords2.start_point[2] = 0.0; Line_coords2.end_point[0] = 100.0; Line_coords2.end_point[1] = 100.0; Line_coords2.end_point[2] = 100.0; tag_t Line2 = NULL_TAG; UF_CURVE_create_line(&Line_coords2, &Line2); //检验两条直线几何上是否不同 //0.两条直线在几何上是相同的 //1.两条直线在几何上是不同的 int aa = UF_CURVE_LINE_ARC__is_line_equal(Line1, Line2); //打印 char msg[256]; sprintf_s(msg, "%d", aa); uc1601(msg,1); UF_terminate(); Caesar卢尚宇 2020年8月31日