ホーム / モデリング / CGaudi / 関数 / FindVertexAllByBox
FindVertexAllByBox関数
定義
FindVertexAllByBox ( Point1 As CGaudiPoint, Point2 As CGaudiPoint, VertexArray() As CGaudiVertex ) As Boolean
[Python]
FindVertexAllByBox_py(Point1 As CGaudiPoint, Point2 As CGaudiPoint)
戻り値
| True | 成功 | |
| False | 失敗 |
[Python]
| [0] | True:成功、False:失敗 | |
| [1][0~検索された点トポロジ数-1] | サイズボックス内の点トポロジ(CGaudiVertex)を返すための配列(動的配列) |
引数
| Point1 | サイズボックスの対角座標1 | |
|
Point2 |
サイズボックスの対角座標2 | |
| VertexArray | サイズボックス内の点トポロジ(CGaudiVertex)を返すための配列(動的配列) |
[Python]
| Point1 | サイズボックスの対角座標1 | |
|
Point2 |
サイズボックスの対角座標2 |
解説
指定された2点を対角座標とするサイズボックス内に存在する点トポロジを全て取得します。
点トポロジが見つからなかった場合や、引数のVertexArrayが動的配列ではない場合は失敗します
実行例
Dim Femtet As New CFemtetDim Gaudi As CGaudi
Dim min As New CGaudiPoint
Dim max As New CGaudiPoint
Dim vertices() As CGaudiVertex
'プロジェクトを開く
If Femtet.LoadProject("C:\Test\test.femprj", True) = False Then
Femtet.ShowLastError
End If'Femtet.Gaudiを変数Gaudiに代入して使いやすくする
Set Gaudi = Femtet.Gaudi
min.SetCoord -5, -5, -5
max.SetCoord 5, 5, 5
if Gaudi.FindVertexAllByBox(min, max, vertices) = False Then
Femtet.ShowLastError
End If


