1rtcSetGeometryVertexAttribEumtberTeoepoRlaoygyT(r3ar)cticnSgetKGeeronmeeltsry4VertexAttributeTopology(3)
2
3
4
5   NAME
6              rtcSetGeometryVertexAttributeTopology - binds a vertex
7                attribute to a topology of the geometry
8
9   SYNOPSIS
10              #include <embree4/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 at‐
20       tribute buffer slot (vertexAttributeID argument) to a topology (topolo‐
21       gyID  argument)  for the specified subdivision geometry (geometry argu‐
22       ment).  Standard vertex buffers are always bound to the default topolo‐
23       gy  (topology  0)  and cannot be bound differently.  A vertex attribute
24       buffer always uses the topology it is bound to when used in the  rtcIn‐
25       terpolate 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