pmp-library  1.0

This class stores a quadric as a symmetrix 4x4 matrix. More...

#include <pmp/algorithms/Quadric.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 symmetrix 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 Normal &n, const Point &p)
 construct from point and normal specifying a plane
 
void clear ()
 set all matrix entries to zero
 
Quadricoperator+= (const Quadric &q)
 add given quadric to this quadric
 
Quadricoperator*= (double s)
 multiply quadric by a scalar
 
double operator() (const Point &p) const
 evaluate quadric Q at position p by computing (p^T * Q * p)
 

Detailed Description

This class stores a quadric as a symmetrix 4x4 matrix.

Used by the error quadric mesh decimation algorithms.