#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include < uf_object_types.h >
#include
#include
#include
NXString selectModel= enum0->ValueAsString();
NXString tangencyFace="相切面";
if (!strcmp(selectModel.GetLocaleText(),tangencyFace.GetLocaleText()))
{
for (int j = 0; j < DrawColorTagVec.size(); j++)
{
uf_list_p_t edge_list;
UF_MODL_ask_face_edges(DrawColorTagVec[j]->Tag(), &edge_list);
int count;
UF_MODL_ask_list_count(edge_list, &count);
for (int i = 0; i < count; i++)
{
tag_t EdgeTag = NULL_TAG;
UF_MODL_ask_list_item(edge_list, i, &EdgeTag);
logical is_smooth;
UF_MODL_ask_edge_smoothness(EdgeTag, 0, &is_smooth);
if (is_smooth == true)
{
uf_list_p_t face_list;
UF_MODL_ask_edge_faces(EdgeTag, &face_list);
int face_count;
UF_MODL_ask_list_count(face_list, &face_count);
for (int g = 0; g < face_count; g++)
{
tag_t FaceTag = NULL_TAG;
UF_MODL_ask_list_item(face_list, g, &FaceTag);
UF_OBJ_set_color(FaceTag, color);
}
}
}
}
}



