NX二次开发-创建旋转UF_MODL_create_revolved

592 篇文章 443 订阅 ¥299.90 ¥99.00

NX二次开发-创建旋转UF_MODL_create_revolved

NX9+VS2012

#include <uf.h>
#include <uf_curve.h>
#include <uf_modl.h>


UF_initialize();

//圆心点
double p1[3] = {0.0, 0.0, 0.0};
tag_t CenterTag = NULL_TAG;
UF_CURVE_create_point(p1, &CenterTag);

//辅助点
double HelpPoint[3] = {100.0, 0.0, 0.0};
tag_t HelpPointTag = NULL_TAG;
UF_CURVE_create_point(HelpPoint, &HelpPointTag);

//类型
UF_CURVE_limit_t limit[2];
UF_CURVE_limit_p_t pLimit[2] = { &limit[0], &limit[1] };
limit[0].limit_type = UF_CURVE_limit_value;
limit[0].value = 0;//按值
limit[1].limit_type = UF_CURVE_limit_value;
limit[1].value = 90;//按值

//创建XZ基准平面,用来放圆弧
double PlanePoint[3] = { 0.0, 0.0, 0.0 };
double Direction1[3] = { 1.0, 0.0, 0.0 };
tag_t DplaneTag = NULL_TAG;
UF_MODL_create_fixed_dplane(PlanePoint, Direction1, &DplaneTag);

tag_t ArcTag = NULL_TAG;
UF_CURVE_create_arc_center_radius(CenterTag, 100, HelpPointTag, pLimit, DplaneTa
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
extern UFUNEXPORT int UF_MODL_ask_face_data( tag_t face ,/* <I> Face obj_id / int * type ,/ <O> Face type is NX surface type code 16 = cylinder 17 = cone 18 = sphere 19 = revolved (toroidal) 20 = extruded 22 = bounded plane 23 = fillet (blend) 43 = b-surface 65 = offset surface 66 = foreign surface / double point[] ,/ <O,len:3> Point information is returned according to the value of type as follows. Plane = Position in plane Cylinder= Position on axis Cone = Position on axis Sphere = Center position Torus = Center position Revolved = Position on axis / double dir[] ,/ <O,len:3> Direction information is returned according to the value of type as follows. Plane = Normal direction Cylinder= Axis direction Cone = Axis direction Torus = Axis direction Revolved = Axis direction / double box[] ,/ <O,len:6> Face boundary. The coordinates of the opposite corners of a rectangular box with sides parallel to X, Y, and Z axes (Absolute Coordinate System) are returned. The box contains the specified face and is usually close to the minimum possible size, but this is not guaranteed. box[0] = Xmin box[1] = Ymin box[2] = Zmin box[3] = Xmax box[4] = Ymax box[5] = Zmax / double * radius ,/ <O> Face major radius: For a cone, the radius is taken at the point[3] position on the axis. For a torus, the radius is taken at the major axis. / double * rad_data ,/ <O> Face minor radius: only a torus or cone has rad_data as a minor radius. For a cone, rad_data is the half angle in radians. For a torus, rad_data is taken at the minor axis. / int * norm_dir / <O> Face normal direction: +1 if the face normal is in the same direction as the surface normal (cross product of the U- and V-derivative vectors), -1 if reversed. */ ); 详解
06-01

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

阿飞2018

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值