|
Blender V5.0
|
#include <Projections.h>
Public Member Functions | |
| CubeTriangleIsect ()=default | |
| CubeTriangleIsect (int64_t cube[2][3], int64_t trig[3][3], int64_t error, int triind) | |
| CubeTriangleIsect (CubeTriangleIsect *parent) | |
| unsigned char | getBoxMask () |
| void | shift (const int off[3]) |
| int | isIntersecting () const |
| int | isIntersectingPrimary (int edgeInd) const |
| float | getIntersectionPrimary (int edgeInd) const |
Public Attributes | |
| TriangleProjection * | inherit |
| Inheritable portion. | |
| CubeProjection | cubeProj [NUM_AXES] |
| Projections of the cube vertices. | |
Class for projections of cube / triangle vertices on the separating axes
Definition at line 72 of file Projections.h.
|
default |
References CubeTriangleIsect(), and error().
Referenced by CubeTriangleIsect(), and CubeTriangleIsect().
| CubeTriangleIsect::CubeTriangleIsect | ( | int64_t | cube[2][3], |
| int64_t | tri[3][3], | ||
| int64_t | error, | ||
| int | triind ) |
Construction from a cube (axes aligned) and triangle
Definition at line 135 of file Projections.cpp.
References create_projection_axes(), crossProduct(), cubeProj, dotProduct(), CubeProjection::edges, i, inherit, CubeProjection::max, max, CubeProjection::min, min, normalize, NUM_AXES, CubeProjection::origin, and vertmap.
| CubeTriangleIsect::CubeTriangleIsect | ( | CubeTriangleIsect * | parent | ) |
Construction from a parent CubeTriangleIsect object and the index of the children
Definition at line 210 of file Projections.cpp.
References cubeProj, CubeTriangleIsect(), CubeProjection::edges, i, inherit, CubeProjection::max, CubeProjection::min, NUM_AXES, and CubeProjection::origin.
| unsigned char CubeTriangleIsect::getBoxMask | ( | ) |
Definition at line 228 of file Projections.cpp.
| float CubeTriangleIsect::getIntersectionPrimary | ( | int | edgeInd | ) | const |
Definition at line 324 of file Projections.cpp.
| int CubeTriangleIsect::isIntersecting | ( | ) | const |
| int CubeTriangleIsect::isIntersectingPrimary | ( | int | edgeInd | ) | const |
| void CubeTriangleIsect::shift | ( | const int | off[3] | ) |
Shifting a cube to a new origin
Definition at line 265 of file Projections.cpp.
| CubeProjection CubeTriangleIsect::cubeProj[NUM_AXES] |
Projections of the cube vertices.
Definition at line 78 of file Projections.h.
Referenced by CubeTriangleIsect(), CubeTriangleIsect(), getBoxMask(), getIntersectionPrimary(), isIntersecting(), isIntersectingPrimary(), and shift().
| TriangleProjection* CubeTriangleIsect::inherit |
Inheritable portion.
Definition at line 75 of file Projections.h.
Referenced by CubeTriangleIsect(), CubeTriangleIsect(), getBoxMask(), getIntersectionPrimary(), isIntersecting(), and isIntersectingPrimary().