青华模具培训学校

 找回密码
 注册

QQ登录

只需一步,快速开始

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

[疑难] ug-api如何实现旋转坐标系和直线

[复制链接]
发表于 2008-4-17 14:36 | 显示全部楼层 |阅读模式
我想把当前坐标系按Z正向旋转30度,这需要用什么函数来实现,该如何定义?1 ?6 }, J% z4 v& d! p9 Z) h
我看了半天帮助也没看明白,请各位指点一下吧!~ 多谢!
发表于 2008-4-20 00:08 | 显示全部楼层
Returns the matrix which can be used to rotate about a point* d5 m( q7 E1 w  T/ u
0 f& A0 ~+ h5 v
Environment: Internal  and  External
% ]  z/ t, y/ H# a- M! [/ lSee Also: , B  s9 @0 W& w; O. M0 x6 l

/ n- f/ S; N! d3 R- iHistory: Originally released in V16.04 U2 v* N( Y& C5 w) `6 N, V# W
******************************************************************************/
2 ]+ k# C  ^# O+ P& Vextern UFUNEXPORT int UF_MTX4_rotation(
* {- X) X5 S9 t, `8 |5 t2 J& U/ k+ v$ Z% {3 l
    const double   rotation_point[3],  /* <I>
$ J0 C& ^& {2 O: g                                          Point about which the rotation is to
9 j2 b! a. M, q2 S: g' W* U                                          be performed.! P* \; k& w4 v( ?  R6 A, w; q2 f
                                       */
9 {% |, L: Y- o) }    const double   rotation_axis[3],   /* <I>% Z" l6 v& [* p( h4 U
                                          Axis about which rotation to occur.
3 r0 O6 S+ F; f, g; n5 C                                       */  
. j! ~1 t* z$ |9 O; [6 L    const double   angle,              /* <I>
1 v( [, O! ~( U3 T                                          rotation angle in degrees
6 A. u* d  _; S0 s8 O% h: }                                       */
' L$ n; Z0 g. q5 h, M3 @4 I- a8 M* G          double   mtx[16]             /* <O>+ a; ?' `$ q3 F0 L
                                       returned matrix that can be used to
6 u9 O, p" l8 s0 Z% X                                       tranform objects  * q. R3 I3 I$ t7 C5 R
                                       */
+ T8 j3 T3 |( I7 z/ ?+ Z/ B);
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-6-27 18:11 , Processed in 0.051417 second(s), 25 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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