Volume Renderer DoF
|
Classes | |
struct | Cube |
struct | Edge |
Functions | |
std::vector< QVector3D > | calcPolygon (QVector4D normal, Cube &cube, int index) |
bool | inside (QVector3D vertex, QVector4D normal) |
bool | cross (QVector3D a, QVector3D b, QVector4D normal) |
QVector3D | intersect (QVector3D a, QVector3D b, QVector4D normal) |
QVector3D | interpolate (QVector3D a, QVector3D b, float t) |
std::vector< QVector3D > PolygonIntersection::calcPolygon | ( | QVector4D | normal, |
Cube & | cube, | ||
int | index | ||
) |
Calculates the intersection points between a cube and a plane
normal | plane equation |
cube | the cube to intersect with |
index | holds the index for which edge ordering should be used |
bool PolygonIntersection::cross | ( | QVector3D | a, |
QVector3D | b, | ||
QVector4D | normal | ||
) |
checks if a line segment intersects a plane
a | first point of line segment |
b | second point of line segment |
normal | plane equation |
bool PolygonIntersection::inside | ( | QVector3D | vertex, |
QVector4D | normal | ||
) |
tests if a point lies infront or behind a plane
vertex | vertex to be tested |
normal | plane equation |
QVector3D PolygonIntersection::interpolate | ( | QVector3D | a, |
QVector3D | b, | ||
float | t | ||
) |
interpolates two vectors
a | first vector |
b | second vector |
t | interpolation value |
QVector3D PolygonIntersection::intersect | ( | QVector3D | a, |
QVector3D | b, | ||
QVector4D | normal | ||
) |
calculates the intersection point of a line segment and a plane call this method only if cross(a, b, normal) returns true;
a | first point of line segment |
b | second point of line segment |
normal | plane equation |