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