#include "polygon_cube_intersection.h"

Go to the source code of this file.
Namespaces | |
| namespace | sofa |
| Main SOFA namespace. | |
| namespace | sofa::helper |
| Utility helper classes that we need, but that are not the core of the plateform. | |
| namespace | sofa::helper::polygon_cube_intersection |
Defines | |
| #define | inline |
| #define | TEST_AGAINST_PARALLEL_PLANES(posbit, negbit, value, limit) |
Functions | |
| static unsigned long | sofa::helper::polygon_cube_intersection::face_plane (const real p[3], unsigned long mask) |
| static unsigned long | sofa::helper::polygon_cube_intersection::bevel_2d (const real p[3], unsigned long mask) |
| static unsigned long | sofa::helper::polygon_cube_intersection::bevel_3d (const real p[3], unsigned long mask) |
| int | sofa::helper::polygon_cube_intersection::trivial_vertex_tests (int nverts, const real verts[][3], int already_know_verts_are_outside_cube) |
| int | sofa::helper::polygon_cube_intersection::fast_polygon_intersects_cube (int nverts, const real verts[][3], const real polynormal[3], int already_know_verts_are_outside_cube, int already_know_edges_are_outside_cube) |
| #define inline |
Definition at line 72 of file fast_polygon_cube_intersection.cpp.
| #define TEST_AGAINST_PARALLEL_PLANES | ( | posbit, | |||
| negbit, | |||||
| value, | |||||
| limit | ) |
Value:
if (mask & (posbit|negbit)) { \ register real temp = value; \ if ((mask & posbit) && temp > limit) \ outcode |= posbit; \ else if ((mask & negbit) && temp < -limit) \ outcode |= negbit; \ } \
Definition at line 76 of file fast_polygon_cube_intersection.cpp.
Referenced by sofa::helper::polygon_cube_intersection::bevel_2d(), sofa::helper::polygon_cube_intersection::bevel_3d(), and sofa::helper::polygon_cube_intersection::face_plane().
1.5.7.1