SilverScreen Solid Modeler

MESH_NODE        

MESH_NODE        

Previous topic Next topic  

MESH_NODE        

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

MESH_NODE

 

Structure

A primitive-level data type that stores the data associated with a SilverScreen Bezier Mesh Surface.

 

 

 struct MESH_NODE : PRIM_NODE

    {

    SURFACE_NODE   *sn;

    RGB            surface_rgb;

    int            surface_pattern_number;

    USINT          mesh_width_style;

    RGB            mesh_rgb;

    int            rows;

    int            cols;

    PATCH_NODE     **index;

    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 used to render the Bezier Mesh Surface

surface_pattern_number

The surface pattern index used to render the Bezier Mesh Surface

mesh_width_style

The edge width and style index used to render the Bezeir Mesh Surface

mesh_rgb

The edge color used to render the Bezier Mesh Surface

rows

The number of rows of PATCH_NODEs making up the primitive.

cols

The number of columns of PATCH_NODEs making up the primitive.

index

A pointer to a pointer of rows and columns of PATCH_NODEs, making up the primitive.

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

To access a particular patch given a row and column index that are in range, you would do the following:

 

 

 PATCH_NODE *patch;

 

 if ( pmesh && pmesh->index && (pmesh rows + pmesh->cols) )

    patch = pmesh->index[row * pmesh->cols + column];

 

 

 

See Also

PATCH_NODE

 

Header

silver.h, ssnodes.h