Easy3D 2.5.3
|
A quadric as a symmetric 4x4 matrix. Used by the error quadric mesh decimation algorithms. More...
#include <surface_mesh_simplification.h>
Public Member Functions | |
Quadric (double a, double b, double c, double d, double e, double f, double g, double h, double i, double j) | |
construct quadric from upper triangle of symmetric 4x4 matrix | |
Quadric (double a=0.0, double b=0.0, double c=0.0, double d=0.0) | |
constructor quadric from given plane equation: ax+by+cz+d=0 | |
Quadric (const vec3 &n, const vec3 &p) | |
construct from point and normal specifying a plane | |
void | clear () |
set all matrix entries to zero | |
Quadric & | operator+= (const Quadric &q) |
add given quadric to this quadric | |
Quadric & | operator*= (double s) |
multiply quadric by a scalar | |
double | operator() (const vec3 &p) const |
evaluate quadric Q at position p by computing (p^T * Q * p) | |
A quadric as a symmetric 4x4 matrix. Used by the error quadric mesh decimation algorithms.