PEXOCCTMCoordPolyTriangle - Computes a Projection of Texture Coordinates for a PolyTriangle


Synopsis

     int PEXOCCTMCoordPolyTriangle(
            PEXOCC context,
            PEXTMCoordData *tm_coord_data,
            PEXPointer facet_data,
            unsigned int count,
            PEXPointer vertices
       )

Arguments

context
An OC context returned by a successful PEXCreateOCC call.

tm_coord_data
A pointer to parameterization data for this primitive. (See Description in PEXOCCTMCoordFillAreaSet).

facet_attributes (OCC)
A mask indicating the facet attributes provided (PEXGANone, PEXGAColor, PEXGANormal or PEXGAFloatData).

surface_vertex_attributes (OCC)
A mask indicating the vertex attributes provided (PEXGANone, PEXGAColor, PEXGANormal, PEXGAEdges, PEXGA2D or PEXGAFloatData).

color_type (OCC)
The type of color data provided (PEXColorTypeIndexed, PEXColorTypeRGB, PEXColorTypeCIE, PEXColorTypeHSV, PEXColorTypeHLS, PEXColorTypeRGB8, PEXColorTypeRGB16, PEXColorTypeRGBA, PEXColorTypeRGBA8 or PEXColorTypeRGBA16).

facet_fp_data_count (OCC)
The number of optional floating-point numbers for each facet.

surface_vertex_fp_data_count (OCC)
The number of floating-point data values defined with each vertex.

facet_data
A pointer to the facet data. See Data Formats.

count
The number of vertices.

vertices
A pointer to the vertex data. See Data Formats.

data_model (OCC)
Specifies the data model used to represent the geometric data.

data_model_specs (OCC)
Offset and size data for the PEXDataStride or PEXDataUnpacked data models.

Returns

<Same as for PEXOCCTMCoordFillAreaSet.>

Description

Invoke PEXOCCTMCoordPolyTriangle to compute a projection of texture coordinates onto a poly-triangle and store them in the specified vertex data fields.

<The rest of the description is identical to the description for PEXOCCTMCoordFillAreaSet.>

Errors

None.

See Also

For a list of related topics and for a list of all texture mapping functions, see Texture Mapping.