Tessellation Module
Creates and accesses tessellation entities. More...
Modules | |
Tessellation Base | |
Functions for setting and getting data common to all tessellation entities. | |
Tess3D | |
Tessellation for solids and surfaces. | |
Tess3DWire | |
Tessellation for 3D wireframes. | |
Tessellation for Markups | |
Tessellation for markups. | |
Detailed Description
Creates and accesses tessellation entities.
This module describes how to access and encode tessellation for a variety of entities. It also provides information about tessellations, associated textures, and markup representations.
- Usage
- Tessellation entities can appear in the
pTessBase
member of all types of representation items, except A3DRiCoordinateSystem and A3DRiPointSet.
If your application parses PRC content, you must develop dedicated functions to parse the base tessellation data and to parse each type of tessellation entity. The following sample code demonstrates the following basic steps:
- Use the A3DTessBaseGet function to get the tessellation base data.
- Use the A3DEntityGetType function to determine the specific tessellation type.
- Invoke a custom function to parse the entity contents.
- Sample code
- A3DRiRepresentationItemData sRiData;/* Call the A3DRiRepresentationItemGet function to get the A3DRiRepresentationItemData */if ( sRiData.m_pTessBase != NULL ){A3DEEntityType eType;{switch(eType){case kA3DTypeTess3D:{/* Call corresponding function... */break;}case kA3DTypeTess3DWire:{/* Call corresponding function... */break;}case kA3DTypeTessMarkup:{/* Call corresponding function... */break;}default:/* Nothing else */break;}}}
- See also
- A3DTess3D
- A3DTess3DWire
- A3DTessMarkup