記事の著者: Caspian
ソース Web サイト: Ace Pilot_Caspian_Caspian NX 二次開発 3000 件、C\C++、Qt-CSDN ブログ
導入:
以下は、関数 ufun を使用して描画モジュールで中心線を作成する例です。
効果:
コード:
#include "me.hpp"
#include <stdio.h>
#include <string.h>
#include <uf.h>
#include <uf_ui.h>
#include <uf_drf.h>
#include <uf_object_types.h>
static int mask_for_drf_arcs(UF_UI_selection_p_t select, void *type)
{
UF_UI_mask_t mask[3] = {
{ UF_circle_type, 0, 0 },
{UF_solid_type, 0, UF_UI_SEL_FEATURE_CIRCULAR_EDGE },
{ UF_section_edge_type, 0, 0 }};
if (!(UF_UI_set_sel_mask(select,
UF_UI_SEL_MAS