ホーム / モデリング / CGaudiFace / 関数 / Offset
Offset関数
定義
Offset (dOffset As Double) As Boolean戻り値
| True | 成功 | |
| False | 失敗 |
引数
| dOffset | オフセット距離 |
解説
ソリッドボディの面をオフセットします。引数でオフセット距離を指定します。
実行例
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.CreateBox(Point, 5, 5, 5)
'面のオフセット
If Body.Face(0).Offset( 1.0 ) = False Then
Femtet.ShowLastError
End If


