ホーム / モデリング / CGaudi / 関数 / MultiRotateFace2
MultiRotateFace2関数
定義
MultiRotateFace2 (FaceList() As CGaudiFace, Point As CGaudiPoint,bSizeBoxCenter As Boolean,Vector As CGaudiVector, Angle As Double) As Boolean
[Python]
MultiRotateFace2_py(CGaudiFace[] FaceList, CGaudiPoint Point,bSizeBoxCenter As Boolean,CGaudiVector Vector, double Angle)
戻り値
| True | 成功 | |
| False | 失敗 |
[Python]
| True | 成功 | |
| False | 失敗 |
引数
| FaceList | 回転させたいFace配列 | |
| Point | 回転軸上の点 | |
| bSizeBoxCenter | 回転軸上の点を回転対象のサイズボックスの中心とするか | |
| Vector | 回転軸の方向ベクトル | |
| Angle | 回転角[deg] |
[Python]
| FaceList | 回転させたいFace(CGaudiFace)配列 | |
| Point | 回転軸上の点(CGaudiPoint) | |
| bSizeBoxCenter | 回転軸上の点を回転対象のサイズボックスの中心とするか | |
| Vector | 回転軸の方向ベクトル(CGaudiVector) | |
| Angle | 回転角[deg] |
解説
指定されたFace全てを回転します。実行例
3つの面を回転します。Dim Face1(2) As CGaudiFace
Dim Point2 As New CGaudiPoint
Dim Vector1 As New CGaudiVector
Set Face1(0) = Body(0).GetFaceByID(33)
Set Face1(1) = Body(0).GetFaceByID(97)
Set Face1(2) = Body(0).GetFaceByID(2)
Point2.SetCoord -2#, -7#, 0#
Vector1.SetCoord 1#, 0#, 0#
Gaudi.MultiRotateFace2 Face1, Point2, False, Vector1, 318.36646066343


