Vertex.IsBoundary

Vertex.IsBoundary operator

導入

v4.2

詳細

Vertex が境界であるか(true)ないか(false)を示す Boolean 値を戻します。

C#構文

// get accessor

Boolean rtn = Vertex.IsBoundary;

1. VBScript の例

NewScene ,false

CreatePrim "Grid", "MeshSurface"

SetSelFilter "Vertex"

SelectGeometryComponents "grid.pnt[0,40]"

logmessage "is point #0 a boundary ? " _

	& selection(0).SubComponent.ComponentCollection(0).IsBoundary

logmessage "is point #40 a boundary ? " _

	& selection(0).SubComponent.ComponentCollection(1).IsBoundary

' Expected result:

'INFO : is point #0 a boundary ? True

'INFO : is point #40 a boundary ? False

2. JScript の例

NewScene( null, false );

CreatePrim("Grid", "MeshSurface", null, null);

SetSelFilter( "Vertex" );

SelectGeometryComponents( "grid.pnt[0,40]" );

logmessage( "is point #0 a boundary ? " 

	+ selection(0).SubComponent.ComponentCollection(0).IsBoundary );

logmessage( "is point #40 a boundary ? " 

	+ selection(0).SubComponent.ComponentCollection(1).IsBoundary );

// Expected result:

//INFO : is point #0 a boundary ? true

//INFO : is point #40 a boundary ? false