ホーム / モデリング / CGaudi / 関数 / CreateSphere
CreateSphere関数
定義
CreateSphere (Center As CGaudiPoint, R As Double) As CGaudiBody戻り値
成功した場合は新規に作成されたBodyが返ります。失敗した場合は、Nothingが返ります。
引数
| Center | 中心点 | |
| R | 半径 |
解説
球を作成します。半径が小さすぎる場合はエラーとなり、Nothingが返ります。
実行例
Dim Femtet As New CFemtetDim Gaudi As CGaudi
Dim Body As CGaudiBody
Dim Point As New CGaudiPoint
'新規プロジェクト作成
If Femtet.OpenNewProject() = False Then
Femtet.ShowLastError
End If
'Femtet.Gaudiを変数Gaudiに代入して使いやすくする
Set Gaudi = Femtet.Gaudi
Point.X = 0
Point.Y = 0
Point.Z = 0
Set Body = Gaudi.CreateSphere(Point, 5)


