PEXOCCComputeIndexedFillAreaSetsShapeHint


Synopsis

 
   int PEXOCCComputeIndexedFillAreaSetsShapeHint(
       PEXOCC context,
       unsigned int set_count,
       unsigned int vertex_count,
       PEXPointer vertex_data,
       unsigned int index_count,
       PEXConnectivityData *connectivity
   )
 

Arguments

context
An OC context returned by a successful PEXCreateOCC call.

vertex_attributes (OCC)
A mask indicating the vertex attributes provided.

color_type (OCC)
The type of color data provided.

surface_vertex_fp_data_count (OCC)
The number of optional floating-point numbers for each vertex.

set_count
The number of fill area sets.

vertex_count
The number of vertices.

vertex_data
A pointer to the vertex data. See Facet / Vertex Data Formats.

index_count
The number of vertex connectivity indices.

connectivity
A pointer to the list of contour 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

Shape hint; one of the following: PEXShapeComplex, PEXShapeNonConvex, PEXShapeConvex, PEXShapeUnknown.

Description

Invoke PEXOCCComputeIndexedFillAreaSetsShapeHint to compute the shape hint for all fill areas of an indexed fill area sets primitive and return it as the function return value.

If this function cannot determine a shape hint because of invalid or degenerate vertex data, the function will return the least optimistic hint, PEXShapeUnknown. If the shape hint for any two fill areas in all the fill area sets is different, the function returns PEXShapeUnknown. This function does not perform a planarity check, so it returns a hint that may be invalid for non-planar fill area sets. This function does not compute a contour hint.

Errors

None.

See Also

For a list of utilities that compute shape hints, see Computing Shape Hints. For a list of related topics, see PEXlib Utilities.