SilverScreen Solid Modeler

IsEmpty method

IsEmpty method

Previous topic Next topic  

IsEmpty method

Previous topic Next topic JavaScript is required for the print function  

 

SilverSharpAPI

 

static bool IsEmpty(PRIM_NODE pNode)

 

 

PRIM_NODE prim; // An instance of a SilverSharp.PRIM_NODE object

 

 

 




Synopsis

using SilverSharp;

 

The IsEmpty method tests whether the PRIM_NODE instance references a node.

 

 

Parameters

pNode is a SilverSharp.PRIM_NODE instance to test for emptiness.

 

 

Return Value

IsEmpty returns true if the object instance does not reference a primitive, and false if it does.

 

 

See Also

PRIM_NODE, Primitive Types

 

 

Example

The following example obtains a primitive from a path and then tests if it is empty:

 

C# Code

 

 using SilverSharp;

 

 . . .

 

 PRIM_NODE prim;

 

 prim = SC.get_prim("\\obj1.1");

 

 if ( PRIM_NODE.IsEmpty(prim) )

    return;