NX二次开发 PK倒圆角 PK_EDGE_set_blend_constant
NX二次开发 PK倒圆角 PK_EDGE_set_blend_constant
bool PK_CreateBlends(const std::vector<PK_EDGE_t> pkEdges, const double radius)
{
int n_temps = (int)pkEdges.size();
double radius1 = fabs(radius);
if (0 == n_temps || radius1 < g_dist_tol)
return false;
int i = 0, n_blend_edges = 0;
double mm = 0.001;
PK_EDGE_t* temps = NULL,* blend_edges = NULL;
PK_EDGE_set_blend_constant_o_t options;
temps = new PK_EDGE_t[n_temps];
for (i = 0; i < n_temps; i++)
{
temps[i] = pkEdges[i];
}
PK_EDGE_set_blend_constant_o_m(options);
PK_EDGE_set_blend_constant(n_temps, temps, radius1 * mm, &options, &n_blend_edges, &blend_edges);
if (n_blend_edges > 0)
{
PK_