SilverScreen Solid Modeler

POLYGON_NODE methods

POLYGON_NODE methods

Previous topic Next topic  

POLYGON_NODE methods

Previous topic Next topic JavaScript is required for the print function  

 

SilverSharpAPI

 

POLYGON_NODE(POLYGON_NODE rhs)

POLYGON_NODE(string poly_path);

 

POLYGON_NODE rhs;        // A SilverSharp.POLYGON_NODE object

string       poly_path;  // A System.String object

 

 




Synopsis

using SilverSharp;

 

The POLYGON_NODE constructors create and initialize a SilverSharp.POLYGON_NODE object. The first form makes a shallow copy of another SilverSharp.POLYGON_NODE object. The second form creates a SilverSharp.POLYGON_NODE from a path to a polygon or polyline.

 

 

Parameters

rhs is a SilverSharp.POLYGON_NODE object from which a shallow copy will be made.

 

poly_path is a path to a SilverScreen polygon or polyline.

 

 

Return Value

POLYGON_NODE returns a SilverSharp.POLYGON_NODE object.

 

 

Remarks

If poly_path specifies an invalid path, then the inherited IsEmpty method will return true.

 

 

See Also

POLYGON_NODE, Primitive Types

 

 

Example

The following code shows how to construct a SilverSharp.POLYGON_NODE object.

 

C# Code

 

 using SilverSharp;

 

 . . .

 

 POLYGON_NODE poly = new POLYGON_NODE("polygon \\obj1.1");

 

 if ( PRIM_NODE.IsEmpty(poly) )

    return;