青华模具培训学校

 找回密码
 注册

QQ登录

只需一步,快速开始

青华模具培训学院
查看: 111|回复: 0

[我问你答] 现在需要创建一段圆弧,如何获取plane0的matrix

[复制链接]
发表于 2020-3-27 14:51 | 显示全部楼层 |阅读模式
如图所示,现在需要创建一段圆弧,如何获取plane0的matrix!代码入下:6 I: i. n. w2 A/ ~: l' Y# [9 x
' s3 L- M) n% p: s
                Point3d point = point0->GetProperties()->GetPoint("Point");                                              double radius=radius0->GetProperties()->GetDouble("Value");8 Y5 d9 X) L0 w
                double angle=angle0->GetProperties()->GetDouble("Value");
4 r& o# H" Z, t0 ^                tag_t arcTag = null_tag;, L$ j. @4 w" ]9 P) e5 o  u8 g
                UF_CURVE_arc_t arc_coords;9 S. h0 `. h( E; m
                arc_coords.arc_center[0]=point.X;
' ^6 x; \5 y1 j3 V  o4 W$ O                arc_coords.arc_center[1]=point.Y;. x! h: j, K9 `' J( s
                arc_coords.arc_center[2]=point.Z;( |! ]3 m( S; Y/ T* L% m
                arc_coords.radius=radius;! \; s0 |. v" L2 A3 K
                arc_coords.start_angle = 0.0;
' Z; e) E& G1 G% o9 Z5 T                arc_coords.end_angle =angle * DEGRA;
& u5 W7 v8 B6 q2 g& f+ G& N6 k# Y8 T                arc_coords.matrix_tag=???;- ]# V- R. y* {* A8 V& t3 p* f
                UF_CURVE_create_arc (&arc_coords, &arcTag);1 s) _( U- V, K% c8 E1 X( Z
+ S; D0 |4 F- W$ ?' X
1585291638(1).jpg
7 Z$ B  M6 _+ H( Y9 l 3 V1 ?5 m5 C, f8 [
9 c* u1 H% a1 l& _5 B/ ^) @
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|关于我们|sitemap|小黑屋|Archiver|手机版|UG网-UG技术论坛-青华数控模具培训学校 ( 粤ICP备15108561号 )

GMT+8, 2024-9-21 05:46 , Processed in 0.051476 second(s), 22 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表