ホーム / モデリング / CGaudiFace / 関数 / RotateFace2
RotateFace2関数
定義
RotateFace2 (Point As CGaudiPoint,bSizeBoxCenter As Boolean,Vector As CGaudiVector,Angle as Double) As Boolean戻り値
| True | 成功 | |
| False | 失敗 |
引数
| Point | 回転軸上の点 | |
| bSizeBoxCenter | 回転軸上の点を回転対象のサイズボックスの中心とするか | |
| Vector | 回転軸の方向ベクトル | |
| Angle | 回転角[deg] |
解説
選択した面を回転します。実行例
TopolID(33)を回転します。Dim Face0 As CGaudiFace
Set Face0 = Body(0).GetFaceByID(33)
Dim Point1 As new CGaudiPoint
Dim Vector0 As new CGaudiVector
Point1.SetCoord 0.0, 0.0, 0.0
Vector0.SetCoord 1, 0, 0
Face0.RotateFace2 Point1, False, Vector0, -40


