SilverScreen Solid Modeler

PrimList        

PrimList        

Previous topic Next topic  

PrimList        

Previous topic Next topic JavaScript is required for the print function  

SilverSharpAPI

 

PrimList

 

 


The PrimList class has methods that return enumerators useful for working with lists of PRIM_NODEs. Because the PrimList class supports the IEnumerable interface, the enumerators in a PrimList work with the Visual-C# foreach statement.

 


C# Code

 

 public class PrimList : System.Collections.IEnumerable

    {

    public static PrimList FromChildren(string      object_path);

    public static PrimList FromChildren(OBJECT_NODE object);

    public static PrimList FromPgroup();

    };

 

 

 

Methods

Name

Description

FromChildren

Used to enumerate every child primitive of an object

FromPgroup

Used to enumerate every primitive in the current p-group

 

Remarks

Several PrimList properties exist in the primitive-level definitions in SilverSharp. For instance, every POLYGON_NODE  has a Children property that can be used to traverse the children of a polygon with foreach. Every PRIM_NODE has a Holes property that can be used to traverse the holes of a primitive with foreach.

 

See Also

BosList, PRIM_NODE, OBJECT_NODE

 

 

Namespace

SilverSharp