NormalType.h 789 B

123456789101112131415161718192021222324252627
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2013 Alec Jacobson <[email protected]>
  4. //
  5. // This Source Code Form is subject to the terms of the Mozilla Public License
  6. // v. 2.0. If a copy of the MPL was not distributed with this file, You can
  7. // obtain one at http://mozilla.org/MPL/2.0/.
  8. #ifndef IGL_NORMALTYPE_H
  9. #define IGL_NORMALTYPE_H
  10. namespace igl
  11. {
  12. // PER_VERTEX_NORMALS Normals computed per vertex based on incident faces
  13. // PER_FACE_NORMALS Normals computed per face
  14. // PER_CORNER_NORMALS Normals computed per corner (aka wedge) based on
  15. // incident faces without sharp edge
  16. enum NormalType
  17. {
  18. PER_VERTEX_NORMALS,
  19. PER_FACE_NORMALS,
  20. PER_CORNER_NORMALS
  21. };
  22. # define NUM_NORMAL_TYPE 3
  23. }
  24. #endif