Reference on Topology/Tessellation

Parent module: Entity Reference

group a3d_reference_on_topo

Creates and accesses entities that reference topology entities and that specify globally-defined attributes.

Entity type is kA3DTypeMiscReferenceOnTopology.

Version

2.0

Reference topology entity are retrieved by indexes on father elements.

For a A3DTopoConnex, it needs:

For a A3DTopoShell, it needs:
  • the A3DTopoShell index on the current A3DTopoBrepData. It is a global index to the “BrepData. In the case of several A3DTopoConnex, it must take into account the number of shells present in the preceding A3DTopoConnex.

    A3DUns32 uiShellIndex = 0;
    for all pConnex on A3DTopoBrepData
    {
        for all pShell on pConnex
        {
            if pShell is wanted
                return uiShellIndex;
            uiShellIndex++;
        }
    }
    

For a A3DTopoFace, it needs:
  • the A3DTopoFace index on the current A3DTopoBrepData. It is a global index to the “BrepData. In the case of several A3DTopoConnex, it must take into account the number of faces present in the preceding A3DTopoConnex.

    A3DUns32 uiFaceIndex = 0;
    for all pConnex on A3DTopoBrepData
    {
        for all pShell on pConnex
        {
            for all pFace on pShell
            {
                if pFace is wanted
                    return uiFaceIndex;
                uiFaceIndex++;
            }
        }
    }
    

For a A3DTopoEdge or A3DTopoCoEdge, it needs: For a A3DTopoVertex, it needs:

Data Structures

A3DMiscReferenceOnTopologyData

Structure that identifies the referenced topology entity and that specifies globally-defined attributes.

A3DMiscReferenceOnTessData

Structure that identifies the referenced tesselation entity and that specifies globally-defined attributes.

Functions

A3DMiscReferenceOnTopologyGet()

Populates the A3DMiscReferenceOnTopologyData structure.

A3DMiscReferenceOnTessGet()

Populates the A3DMiscReferenceOnTessData structure for PolyBrepModel.

A3DMiscReferenceOnTessCreate()

Creates an A3DMiscReferenceOnTess from an A3DMiscReferenceOnTessData structure.

A3DMiscReferenceOnTopologyCreate()

Creates an A3DMiscReferenceOnTopology from an A3DMiscReferenceOnTopologyData structure.