Hit.h 769 B

1234567891011121314151617181920212223242526
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
  4. // 2014 Christian Schüller <schuellchr@gmail.com>
  5. //
  6. // This Source Code Form is subject to the terms of the Mozilla Public License
  7. // v. 2.0. If a copy of the MPL was not distributed with this file, You can
  8. // obtain one at http://mozilla.org/MPL/2.0/.
  9. #ifndef IGL_EMBREE_HIT_H
  10. #define IGL_EMBREE_HIT_H
  11. namespace igl
  12. {
  13. namespace embree
  14. {
  15. // Reimplementation of the embree::Hit struct from embree1.0
  16. struct Hit
  17. {
  18. int id; // primitive id
  19. int gid; // geometry id
  20. float u,v; // barycentric coordinates
  21. float t; // distance = direction*t to intersection
  22. };
  23. }
  24. }
  25. #endif