rtcSetGeometryTopologyCount.3embree3 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. .TH "rtcSetGeometryTimeStepCount" "3" "" "" "Embree Ray Tracing Kernels 3"
  2. .SS NAME
  3. .IP
  4. .nf
  5. \f[C]
  6. rtcSetGeometryTopologyCount\ \-\ sets\ the\ number\ of\ topologies\ of
  7. \ \ a\ subdivision\ geometry
  8. \f[]
  9. .fi
  10. .SS SYNOPSIS
  11. .IP
  12. .nf
  13. \f[C]
  14. #include\ <embree3/rtcore.h>
  15. void\ rtcSetGeometryTopologyCount(
  16. \ \ RTCGeometry\ geometry,
  17. \ \ unsigned\ int\ topologyCount
  18. );
  19. \f[]
  20. .fi
  21. .SS DESCRIPTION
  22. .PP
  23. The \f[C]rtcSetGeometryTopologyCount\f[] function sets the number of
  24. topologies (\f[C]topologyCount\f[] parameter) for the specified
  25. subdivision geometry (\f[C]geometry\f[] parameter).
  26. The number of topologies of a subdivision geometry must be greater or
  27. equal to 1.
  28. .PP
  29. To use multiple topologies, first the number of topologies must be
  30. specified, then the individual topologies can be configured using
  31. \f[C]rtcSetGeometrySubdivisionMode\f[] and by setting an index buffer
  32. (\f[C]RTC_BUFFER_TYPE_INDEX\f[]) using the topology ID as the buffer
  33. slot.
  34. .SS EXIT STATUS
  35. .PP
  36. On failure an error code is set that can be queried using
  37. \f[C]rtcGetDeviceError\f[].
  38. .SS SEE ALSO
  39. .PP
  40. [RTC_GEOMETRY_TYPE_SUBDIVISION], [rtcSetGeometrySubdivisionMode]