SilverScreen Solid Modeler

POLYGON_NODE        

POLYGON_NODE        

Previous topic Next topic  

POLYGON_NODE        

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

POLYGON_NODE

 

Structure

A primitive-level data type that stores the data associated with a SilverScreen polygon

 

 

 struct POLYGON_NODE : PRIM_NODE

    {

    SURFACE_NODE     *sn;

    RGB              surface_rgb;

    int              surface_pattern_number;

    PRIM_NODE        *first_node;

    PRIM_NODE        *first_phantom;

    TEXTURE_DATA     *texture;

    };

 

 


Members

Member

Description

sn

A SURFACE_NODE pointer, that if not NULL, stores the surface properties for rendering this primitive. When this member is NULL, then the surface properties from the parent OBJECT_NODE will be used to render this primitive.

surface_rgb

The fill color for the polygon

surface_pattern_number

The surface pattern index for the polygon, or 0 if there is none.

first_node

The first line or arc primitive in the group of children that composes the polygon.

first_phantom

The first phantom primitive belonging to this primitive. A phantom node is a ROUND_NODE that was turned into facets, but whose properties are preserved for the annotation system.

texture

A TEXTURE_DATA pointer, that if not NULL, stores the texture properties for rendering this primitive. When this member is NULL, then the texture properties from the parent OBJECT_NODE will be used to render this primitive.

 

 

Remarks

A POLYGON_NODE is a PRIM_NODE that has the BITS_POLYGON flag enabled in 'bits'.

 

See Also

primitive_plane2, ROUND_NODE

 

Header

silver.h, ssnodes.h