A3DGraphSolidPatternData
Fields
Detailed Description
-
struct A3DGraphSolidPatternData
A fill pattern describing either a simple color or a material.
A3DGraphSolidPatternData
is one of the four fill pattern provided by HOOPS. It is associated to thekA3DTypeGraphSolidPattern
entity type. The other available fill patterns areA3DGraphDottingPatternData
,A3DGraphHatchingPatternData
andA3DGraphVPicturePatternData
.- Version
2.0
See also
See also
See also
See also
See also
- Pattern description
This pattern consists in either a flat shading represented with an RGB color code, or a full material description By default (
m_bMaterial == A3D_FALSE
),m_uiRgbColorIndex
is an index to an instance ofA3DGraphRgbColorData
which can be retrieved usingA3DGlobalGetGraphRgbColorData
. ifm_bMaterial
is true,m_uiRgbColorIndex
indexes aA3DGraphMaterialData
. In that case, useA3DGlobalGetGraphMaterialData
.// Getting the solid pattern info according to its type: A3DGraphSolidPatternData solid_pattern; A3D_INITIALIZE_DATA(A3DGraphSolidPatternData, solid_pattern); // Filling in solid_pattern... if(solid_pattern.m_bMaterial) { A3DGraphMaterialData material; A3D_INITIALIZE_DATA(A3DGraphMaterialData, material); A3DGlobalGetGraphMaterialData(solid_pattern.m_uiRgbColorIndex, &material); // Processing material... } else { A3DGraphRgbColorData rgb_color; A3D_INITIALIZE_DATA(A3DGraphRgbColorData, rgb_color); A3DGlobalGetGraphRgbColorData(solid_pattern.m_uiRgbColorIndex, &rgb_color); // Processing rgb_color... }
- Pattern layers
Implementations can express complex patterns by chaining them in order, using the
m_uiNextPatternIndex
field.