SilverScreen Solid Modeler

CURVE_NODE methods

CURVE_NODE methods

Previous topic Next topic  

CURVE_NODE methods

Previous topic Next topic JavaScript is required for the print function  

 

SilverSharpAPI

 

CURVE_NODE(CURVE_NODE rhs)

CURVE_NODE(string curve_path);

 

CURVE_NODE rhs;        // A SilverSharp.CURVE_NODE object

string     curve_path; // A System.String object

 

 




Synopsis

using SilverSharp;

 

The CURVE_NODE constructors create and initialize a SilverSharp.CURVE_NODE object. The first form makes a shallow copy of another SilverSharp.CURVE_NODE object. The second form creates a SilverSharp.CURVE_NODE from a path to a spline or bezier curve primitive.

 

 

Parameters

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

 

curve_path is a path to a SilverScreen spline or Bezier curve primitive

 

 

Return Value

CURVE_NODE returns a SilverSharp.CURVE_NODE object.

 

 

Remarks

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

 

 

See Also

CURVE_NODE, Primitive Types

 

 

Example

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

 

C# Code

 

 using SilverSharp;

 

 . . .

 

 CURVE_NODE curve = new CURVE_NODE("bezier \\obj1.1");

 

 if ( PRIM_NODE.IsEmpty(curve) )

    return;