1rtcSetGeometryVertexAttribEumtberTeoepoRlaoygyT(r3ar)cticnSgetKGeeronmeeltsry3VertexAttributeTopology(3)
2
3
4
5   NAME
6              rtcSetGeometryVertexAttributeTopology - binds a vertex
7                attribute to a topology of the geometry
8
9   SYNOPSIS
10              #include <embree3/rtcore.h>
11
12              void rtcSetGeometryVertexAttributeTopology(
13                RTCGeometry geometry,
14                unsigned int vertexAttributeID,
15                unsigned int topologyID
16              );
17
18   DESCRIPTION
19       The   rtcSetGeometryVertexAttributeTopology  function  binds  a  vertex
20       attribute  buffer  slot  (vertexAttributeID  argument)  to  a  topology
21       (topologyID  argument) for the specified subdivision geometry (geometry
22       argument).  Standard vertex buffers are always  bound  to  the  default
23       topology  (topology  0)  and  cannot  be  bound  differently.  A vertex
24       attribute buffer always uses the topology it is bound to when  used  in
25       the rtcInterpolate and rtcInterpolateN calls.
26
27       A topology with ID i consists of a subdivision mode set through rtcSet‐
28       GeometrySubdivisionMode and the index buffer bound to the index  buffer
29       slot i.  This index buffer can assign indices for each face of the sub‐
30       division geometry that are different to  the  indices  of  the  default
31       topology.  These new indices can for example be used to introduce addi‐
32       tional borders into the subdivision mesh to map multiple textures  onto
33       one subdivision geometry.
34
35   EXIT STATUS
36       On  failure  an  error  code is set that can be queried using rtcGetDe‐
37       viceError.
38
39   SEE ALSO
40       [rtcSetGeometrySubdivisionMode], [rtcInterpolate], [rtcInterpolateN]
41
42
43
44                                      rtcSetGeometryVertexAttributeTopology(3)
Impressum