Wayverb
tri_cube_intersection.h
1 #pragma once
2 
3 // see:
4 // http://www.realtimerendering.com/resources/GraphicsGems/gemsiii/triangleCube.c
5 
6 #include "triangle_vec.h"
7 
8 #include "glm/fwd.hpp"
9 
10 namespace wayverb {
11 namespace core {
12 namespace geo {
13 
14 enum class where { inside, outside };
15 
16 int face_plane(const glm::vec3& p);
17 int bevel_2d(const glm::vec3& p);
18 int bevel_3d(const glm::vec3& p);
19 where check_point(const glm::vec3& p1,
20  const glm::vec3& p2,
21  float alpha,
22  int mask);
23 where check_line(const glm::vec3& p1, const glm::vec3& p2, int outcode_diff);
24 where point_triangle_intersection(const glm::vec3& p, const triangle_vec3& t);
25 where t_c_intersection(const triangle_vec3& t);
26 
27 } // namespace geo
28 } // namespace core
29 } // namespace wayverb
Definition: traits.cpp:2
Definition: capsule_base.h:9