ホーム / モデリング / CGaudiBody / 関数 / VectorCopy
VectorCopy関数
定義
VectorCopy ( vec As CGaudiVector, Interval As Double, Copy As Long, newBody( ) As CGaudiBody)As Boolean
[Python]
VectorCopy_py(CGaudiVector vec, double Interval, int Copy)
戻り値
| True | 成功 | |
| False | 失敗 |
[Python]
| [0] | True:成功、False:失敗 | |
| [1][0~作成されたボディ数-1] | コピーにより作成されたCGaudiBody(配列) |
引数
| vec | コピー方向となるベクトル | |
| Interval | 指定方向へのコピー間隔 | |
| Copy | 指定方向へのコピー数 | |
| newBody( ) | コピーにより作成されたCGaudiBody(配列) |
[Python]
| vec | コピー方向となるベクトル(CGaudiVector) | |
| Interval | 指定方向へのコピー間隔 | |
| Copy | 指定方向へのコピー数 |
解説
CGaudiBodyのコピーを指定された方向に沿って作成します。属性は継承します。指定された間隔ごとに指定個数分コピーを作成していきます。
実行例
Dim Femtet As New CFemtetDim Gaudi As CGaudi
'新規プロジェクト作成
If Femtet.OpenNewProject() = False Then
Femtet.ShowLastError
End If
Dim Body As CGaudiBody
'------- CreateBox -------
Dim Point0 As New CGaudiPoint
Point0.SetCoord 0.0, 0.0, 0.0
Set Body = Gaudi.CreateBox(Point0, 2.0, 2.0, 2.0)
'------- VectorCopy -------
Dim BodyArray() As CGaudiBody
Dim Vec As New CGaudiVector
Vec.SetCoord 1, 0, 0
Body.VectorCopy Vec, 1.0, 3.0, BodyArray


