
v4.2
ControlPoint が境界であるか(true)ないか(false)を示すBoolean値を戻します。
// get accessor Boolean rtn = ControlPoint.IsBoundary; |
NewScene ,false CreatePrim "Arc", "NurbsCurve" SetSelFilter "Vertex" SelectGeometryComponents "arc.pnt[0]" logmessage "is point #0 a boundary point ? answer = " _ & selection(0).SubComponent.ComponentCollection(0).IsBoundary SelectGeometryComponents "arc.pnt[9]" logmessage "is point #9 a boundary point ? answer = " _ & selection(0).SubComponent.ComponentCollection(0).IsBoundary SelectGeometryComponents "arc.pnt[LAST]" logmessage "is last point a boundary point ? answer = " _ & selection(0).SubComponent.ComponentCollection(0).IsBoundary ' Expected Result: 'INFO : is point #0 a boundary point ? answer = True 'INFO : is point #9 a boundary point ? answer = False 'INFO : is last point a boundary point ? answer = True |
NewScene( null, false );
CreatePrim( "Grid", "NurbsSurface", null, null );
ActivateVertexSelTool();
SelectGeometryComponents("grid.pnt[(0,0)]");
logmessage( "is point (0,0) a boundary point ? answer = "
+ selection(0).SubComponent.ComponentCollection(0).IsBoundary );
SelectGeometryComponents("grid.pnt[(5,5)]");
logmessage( "is point (5,5) a boundary point ? answer = "
+ selection(0).SubComponent.ComponentCollection(0).IsBoundary );
SelectGeometryComponents("grid.pnt[(10,10)]");
logmessage( "is point (10,10) a boundary point ? answer = "
+ selection(0).SubComponent.ComponentCollection(0).IsBoundary );
// Expected Result:
//INFO : is point (0,0) a boundary point ? answer = true
//INFO : is point (5,5) a boundary point ? answer = false
//INFO : is point (10,10) a boundary point ? answer = true |