PEXOCCTMCoordIndexedTriangles - Computes a Projection of Texture Coordinates for a Indexed Triangle Set


Synopsis

      int PEXOCCTMCoordIndexedTriangles(
             PEXOCC context,
             PEXTMCoordData *tm_coord_data,
             unsigned int all_independent,
             unsigned short num_facets,
             PEXPointer facet_data,
             unsigned int num_verts,
             PEXPointer vertices,
             PEXSwitch *per_edge_data,
             unsigned short *connectivity
        )

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, PEXGA2D or PEXGAFloatData).

edge_attributes (OCC)
A mask indicating the edge attributes provided (PEXGANone, PEXGAEdges).

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.

all_independent
True if vertices are a simple list.

num_facets
Number of facets.

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

num_verts
The number of vertices.

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

per_edge_data
Optional edge data.

connectivity
A pointer to the list of triangle connectivity data.

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 PEXOCCTMCoordIndexedTriangles to compute a projection of texture coordinates onto the indexed triangles 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.