Femtet2026.0マクロヘルプ/マニュアル
 

ホーム / モデリング / CGaudiBody / プロパティ / VertexNum

VertexNumプロパティ

定義

VertexNum As Long
値の取得  
値の設定   ×

引数

ありません

解説

CGaudiBodyが持っているCGaudiVertex(点)の数を取得します。

実行例

メッセージボックスにVertexの数を表示する
Dim Femtet As New CFemtet
Dim 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.CreateVertex(Point)

MsgBox Body.VertexNum, vbInformation, "Vertexの数"