rtcSetGeometrySubdivisionMode.3embree3 1.8 KB

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