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