Reference on Topology/Tessellation

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

2.0

Entity type is:c:enumerator:~kA3DTypeMiscReferenceOnTopology.

Referenced topological entities are retrieved by indexes which are meaningful in the context of their parent element.

For a:c:type:~A3DTopoConnex, it needs:

  • the:c:type:~A3DTopoConnexindex on the current:c:type:~A3DTopoBrepData.

For a:c:type:~A3DTopoShell, it needs:

  • A3DUns32uiShellIndex=0;
    forallpConnexonA3DTopoBrepData
    {
    forallpShellonpConnex
    {
    ifpShelliswanted
    returnuiShellIndex;
    uiShellIndex++;
    }
    }
    

For a:c:type:~A3DTopoFace, it needs:

  • A3DUns32uiFaceIndex=0;
    forallpConnexonA3DTopoBrepData
    {
    forallpShellonpConnex
    {
    forallpFaceonpShell
    {
    ifpFaceiswanted
    returnuiFaceIndex;
    uiFaceIndex++;
    }
    }
    }
    

For a:c:type:~A3DTopoEdgeor:c:type:~A3DTopoCoEdge, it needs:

  • the:c:type:~A3DTopoFaceindex on the current:c:type:~A3DTopoBrepData(see index need for:c:type:~A3DTopoFacereference).
  • the:c:type:~A3DTopoLoopindex on the current:c:type:~A3DTopoFace.
  • the:c:type:~A3DTopoCoEdgeindex on the current:c:type:~A3DTopoLoop.

For a:c:type:~A3DTopoVertex, it needs:

  • the:c:type:~A3DTopoFaceindex on the current:c:type:~A3DTopoBrepData(see index need for:c:type:~A3DTopoFacereference).
  • the:c:type:~A3DTopoLoopindex on the current:c:type:~A3DTopoFace.
  • the:c:type:~A3DTopoCoEdgeindex on the current:c:type:~A3DTopoLoop.
  • the:c:type:~A3DTopoVertexindex on the current:c:type:~A3DTopoEdge. Is set to 0 for the start vertex, and 1 for the end vertex.

Parameters

pData: The:c:struct:~A3DMiscReferenceOnTessDatainstance to create reference from

ppReferenceOnTess: A pointer to the resulting:c:type:~A3DMiscReferenceOnTessentity

Returns

A3D_SUCCESSon success, or an error code on failure

Structures

Functions