ホーム / モデリング / CGaudiFace / 関数 / CreateReplica
CreateReplica関数
定義
CreateReplica As CGaudiBody戻り値
CGaudiBody引数
ありません。解説
複製を作成します。実行例
Dim Femtet As New CFemtetDim Gaudi As CGaudi
Dim Body As CGaudiBody
Dim CopyBody As CGaudiBody
Dim Point(1)As New CGaudiPoint
Dim Vector As New CGaudiVector
'新規プロジェクト作成
If Femtet.OpenNewProject() = False Then
Femtet.ShowLastError
End If
'Femtet.Gaudiを変数Gaudiに代入して使いやすくする
Set Gaudi = Femtet.Gaudi
Point(0).X =0
Point(0).Y =0
Point(0).Z =0
Vector.X =0
Vector.Y =0
Vector.Z =10
Set Body =Gaudi.CreateBox(Point(0),3,3,3)
Set CopyBody = Body.GetFaceByID(2).CreateReplica
If CopyBody.Move(Vector) = False Then
Femtet.ShowLastError
End
End If


