1rtcSetGeometrySubdivisionMEomdber(e3e)Ray Tracing KerrnteclSset3GeometrySubdivisionMode(3)
2
3
4
5   NAME
6              rtcSetGeometrySubdivisionMode - sets the subdivision mode
7                of a subdivision geometry
8
9   SYNOPSIS
10              #include <embree3/rtcore.h>
11
12              void rtcSetGeometrySubdivisionMode(
13                RTCGeometry geometry,
14                unsigned int topologyID,
15                enum RTCSubdivisionMode mode
16              );
17
18   DESCRIPTION
19       The  rtcSetGeometrySubdivisionMode  function  sets the subdivision mode
20       (mode parameter) for the topology (topologyID parameter) of the  speci‐
21       fied subdivision geometry (geometry parameter).
22
23       The  subdivision  modes  can  be used to force linear interpolation for
24       certain parts of the subdivision mesh:
25
26       · RTC_SUBDIVISION_MODE_NO_BOUNDARY: Boundary patches are ignored.  This
27         way each rendered patch has a full set of control vertices.
28
29       · RTC_SUBDIVISION_MODE_SMOOTH_BOUNDARY:  The  sequence of boundary con‐
30         trol points are used to generate a  smooth  B-spline  boundary  curve
31         (default mode).
32
33       · RTC_SUBDIVISION_MODE_PIN_CORNERS: Corner vertices are pinned to their
34         location during subdivision.
35
36       · RTC_SUBDIVISION_MODE_PIN_BOUNDARY: All vertices  at  the  border  are
37         pinned  to  their location during subdivision.  This way the boundary
38         is interpolated linearly.  This mode is typically used for  texturing
39         to also map texels at the border of the texture to the mesh.
40
41       · RTC_SUBDIVISION_MODE_PIN_ALL:  All  vertices at the border are pinned
42         to their location during subdivision.  This way all patches are  lin‐
43         early interpolated.
44
45   EXIT STATUS
46       On  failure  an  error  code is set that can be queried using rtcGetDe‐
47       viceError.
48
49   SEE ALSO
50       [RTC_GEOMETRY_TYPE_SUBDIVISION]
51
52
53
54                                              rtcSetGeometrySubdivisionMode(3)
Impressum