|
OPENVDB_DEPRECATED | Plane () |
| Invalid plane since |N|=0. More...
|
|
OPENVDB_DEPRECATED | Plane (const Point &P0, const Vector &N) |
|
OPENVDB_DEPRECATED | Plane (const Point &P0, const Vector &N, Normalize) |
| Define plane from a point in the pane and its normal. More...
|
|
OPENVDB_DEPRECATED | Plane (const Vector &P1, const Vector &P2, Real alpha) |
| Define half-plane as affine interpolation between two points Normal points from P1 to P2 and plane goes through P1 for alpha=0. More...
|
|
OPENVDB_DEPRECATED | Plane (const Point &P0, const Point &P1, const Point &P2) |
|
OPENVDB_DEPRECATED | Plane (const Point &P0, const Point &P1, const Point &P2, int n) |
|
void | flip () |
| flips normal of plane. Note that the point is unchanged! More...
|
|
Real | getDist () const |
|
Vector | getNorm () const |
|
Vector | getNormal () const |
|
Point | getPoint () const |
|
Real | getPoint (int i) const |
|
Real | getNorm (int i) const |
|
Point | getNormalPoint () const |
|
void | setNorm (const Vector &N) |
|
void | setPoint (const Point &P0) |
| redefines plane position but maintains the old normal More...
|
|
void | set (const Point &P0, const Vector &N) |
| redefines plane. Assumes N is normalized More...
|
|
void | set (const Point &P0, const Vector &N, Normalize) |
| redefines plane. Does not assume N is normalized More...
|
|
bool | operator== (const Plane &other) const |
|
bool | operator!= (const Plane &other) const |
|
bool | isValid () const |
|
bool | isInside (const Point &P) const |
|
bool | isInside (const Point &P1, const Point &P2) const |
| Convenient for checking vertices of an edge or ray. More...
|
|
bool | isInside (const Point &P1, const Point &P2, const Point &P3) const |
| Convenient for checking vertices of a trinagle. More...
|
|
bool | isOutside (const Point &P) const |
|
bool | isOutside (const Point &P1, const Point &P2) const |
| Convenient for checking vertices of an edge or ray. More...
|
|
bool | isOutside (const Point &P1, const Point &P2, const Point &P3) const |
|
bool | isOn (const Point &pt, Real tolerance=1e-6) const |
|
bool | intersects (const Point &P1, const Point &P2) const |
| Convenient for checking vertices of an edge or ray. More...
|
|
bool | intersects (const Ray< Real > &ray) const |
|
bool | intersects (const Ray< Real > &ray, Real &t) const |
|
Real | angle (const Plane &other) const |
|
Plane | slerp (const Plane &other, Real t) const |
|
Plane | lerp (const Plane &other, Real t) const |
|
Plane | lerpPoints (const Plane &other, Real t) const |
|
template<typename Real>
class openvdb::v0_104_0::math::Plane< Real >
Plane Class.
Implicit definition of plane with normal N through a point P0:
(P-P0).N = P.N-P0.N = 0
Nx*Px + Ny*Py + Nz*Pz - ( Nx*P0x + Ny*P0y + Nz*P0z ) = Nx*Px + Ny*Py + Nz*Pz - Dist = 0
Nx*Px + Ny*Py + Nz*Pz = Dist