SilverScreen Solid Modeler

VertexList.FromObject method

VertexList.FromObject method

Previous topic Next topic  

VertexList.FromObject method

Previous topic Next topic JavaScript is required for the print function  

SilverSharpAPI

 

public static VertexList FromObject( const string obj_path );

public static VertexList 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.VertexList object that is used to enumerate all of the vertices  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 vertices are to be enumerated

 

 

Return Value

FromObject returns a VertexList object

 

 

See Also

VertexList, Enumerators, OBJECT_NODE

 

 

Example

The following code enumerates all of the vertices of an OBJECT_NODE:

C# Code

 

 using SilverSharp;

 

 . . .

 

 VertexList vl = VertexList.FromObject("\\assembly\\a1\\a2\\claw\\claw2");

 

 foreach ( SS_XYZ vertex in vl )

    {

    VisitOneVertex(vertex);

    }