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


