SilverScreen Solid Modeler

PATCH_NODE

PATCH_NODE

Previous topic Next topic  

PATCH_NODE

Previous topic Next topic JavaScript is required for the print function  

SilverSharpAPI

 

SilverSharp.PATCH_NODE

 

 


The SilverSharp.PATCH_NODE class contains information about a control patch of a SilverSharp.MESH_NODE object.



C# Code

 

 class PATCH_NODE sealed

    {

    readonly uint       rows;

    readonly uint       cols;

 

    property uint       bits { get; }

    property int        id   { get; }

    property WidthStyle patch_width_style { get; }

    property SS_RGB     patch_rgb         { get; }

 

    SS_XYZ PATCH_NODE[int row, int col];

    };

 

 

 

Properties

The following read-only properties mimic the purpose of their counter-parts in the SilverC PATCH_NODE:

 

Property

Description

bits

Bit flags reserved for future use

id

A numeric value that identifies the patch within the mesh surface

patch_rgb

The edge color used to render this patch of the mesh surface

patch_width_style

The edge with and style index used to render this patch of the mesh surface.

 

The following read-only properties extend PATCH_NODE for SilverSharp:

 

Property

Description

cols

An integer value that stores the number of columns in a patch

rows

An integer value that stores the number of rows in a patch.

PATCH_NODE[int row, int col]

A read-only indexer to retrieve a control point of the patch. row must be >= 0 and < rows. col must be >= 0 and < cols. This indexer replaces the 'patch' property of the SilverC PATCH_NODE.

 

 

See Also

MESH_NODE, SilverC PATCH_NODE

 


Example

See the MESH_NODE object for an example