ControlPoint.IsBoundary operator

Introduced

v4.2

Description

Returns a Boolean value indicating whether the ControlPoint is a boundary (true) or not.

C# Syntax

// get accessor
Boolean rtn = ControlPoint.IsBoundary;

Examples

1. VBScript Example

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

2. JScript Example

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