SilverScreen Solid Modeler

PrimList.FromPgroup method

PrimList.FromPgroup method

Previous topic Next topic  

PrimList.FromPgroup method

Previous topic Next topic JavaScript is required for the print function  

SilverSharpAPI

 

public static PrimList FromPgroup ( )

 

 

 

 

 




Synopsis

The PrimList.FromPgroup method  returns a PrimList object that will enumerate all of the primitives of the current p-group

 

 

Parameters

none

 

 

Return Value

FromPgroup returns a PrimList class

 

 

Remarks

This function retrieves every primitive in a p-group, but will not delve into children of primitives that serve as containers (such as POLYGON_NODEs).

 

 

See Also

PrimList, FromChildren

 

 

Example

To visit all the children of a p-group, do this:

 

C# Code

 

 using SilverSharp;

 

 . . .

 

 PrimList pl = PrimList.FromPgroup();

   

 foreach ( PRIM_NODE prim in pl )

    {

    VisitOnePrimitive(prim);

    }