1RTCCurveFlags(3)         Embree Ray Tracing Kernels 3         RTCCurveFlags(3)
2
3
4
5   NAME
6              RTCCurveFlags - per segment flags for curve geometry
7
8   SYNOPSIS
9              #include <embree3/rtcore.h>
10
11       enum   RTCCurveFlags   {   RTC_CURVE_FLAG_NEIGHBOR_LEFT  =  (1  <<  0),
12       RTC_CURVE_FLAG_NEIGHBOR_RIGHT = (1 << 1) };
13
14   DESCRIPTION
15       The RTCCurveFlags type is used for linear curves to  determine  if  the
16       left  and/or  right  neighbor  segment exist.  Therefore one attaches a
17       buffer of type RTC_BUFFER_TYPE_FLAGS to the curve geometry which stores
18       an individual byte per curve segment.
19
20       If  the RTC_CURVE_FLAG_NEIGHBOR_LEFT flag in that byte is enabled for a
21       curve segment, then the left segment exists (which  starts  one  vertex
22       before  the  start vertex of the current curve) and the current segment
23       is rendered to properly attach to that segment.
24
25       If the RTC_CURVE_FLAG_NEIGHBOR_RIGHT flag in that byte is enabled for a
26       curve segment, then the right segment exists (which ends one vertex af‐
27       ter the end vertex of the current curve) and  the  current  segment  is
28       rendered to properly attach to that segment.
29
30       When  not  properly  specifying left and right flags for linear curves,
31       the rendering at the ending of these curves may not  look  correct,  in
32       particular when round linear curves are viewed from the inside.
33
34   EXIT STATUS
35   SEE ALSO
36       [RTC_GEOMETRY_TYPE_CURVE]
37
38
39
40                                                              RTCCurveFlags(3)
Impressum