ホーム / モデリング / CGaudiFace / 関数 / ChangeRadius
ChangeRadius関数
定義
ChangeRadius (dRadius As Double) As Boolean戻り値
| True | 成功 | |
| False | 失敗 |
引数
| dRadius | 半径 |
解説
円柱の側面または球の面の半径を変更します。引数で半径を指定します。
実行例
Dim Femtet As New CFemtet
Dim Gaudi As CGaudi
'新規プロジェクト作成
If Femtet.OpenNewProject() = False Then
Femtet.ShowLastError
End If
'Femtet.Gaudiを変数Gaudiに代入して使いやすくする
Set Gaudi = Femtet.Gaudi
'円柱の作成
Dim Body As CGaudiBody
Dim Point As New CGaudiPoint
Point.SetCoord 0, 0, 0
Set Body = Gaudi.CreateCylinder(Point, 5, 10)
'半径変更
If Body.Face(0).ChangeRadius( 10.0 ) = False Then
Femtet.ShowLastError
End If


