SilverScreen Solid Modeler

EdgeList.FromObject method

EdgeList.FromObject method

Previous topic Next topic  

EdgeList.FromObject method

Previous topic Next topic JavaScript is required for the print function  

SilverSharpAPI

 

public static EdgeList FromObject( const string obj_path );

public static EdgeList FromObject( const OBJECT_NODE obj );

 

const string      obj_path;   // A System.String

const OBJECT_NODE obj;        // A SilverSharp.OBJECT_NODE

 

 




Synopsis

The FromObject method creates a SilverSharp.EdgeList object that is used to enumerate all of the edges in an OBJECT_NODE.

 

 

Parameters

obj_path is a System.String that contains a SilverScreen path to an object

obj is a SilverSharp.OBJECT_NODE whose edges are to be enumerated

 

 

Return Value

FromObject returns an EdgeList object

 

 

See Also

EdgeList, Enumerators, OBJECT_NODE

 

 

Example

The following code enumerates all of the EDGE_NODE objects of an OBJECT_NODE:

C# Code

 

 using SilverSharp;

 

 . . .

 

 EdgeList el = EdgeList.FromObject("\\assembly\\a1\\a2\\claw\\claw2");

 

 foreach ( EDGE_NODE edge in el )

    {

    VisitOneEdge(edge);

    }