Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
ACG::Geometry::QuadricT< Scalar > Class Template Reference

#include <ACG/Geometry/Types/QuadricT.hh>

Public Member Functions

 QuadricT (Scalar _a, Scalar _b, Scalar _c, Scalar _d, Scalar _e, Scalar _f, Scalar _g, Scalar _h, Scalar _i, Scalar _j)
 construct with upper triangle of symmetrix 4x4 matrix
 
 QuadricT (Scalar _a=0.0, Scalar _b=0.0, Scalar _c=0.0, Scalar _d=0.0)
 constructor from given plane equation: ax+by+cz+d=0
 
void clear ()
 set all entries to zero
 
QuadricT< Scalar > & operator+= (const QuadricT< Scalar > &_q)
 add quadrics
 
QuadricT< Scalar > & operator*= (Scalar _s)
 multiply by scalar
 
VectorT< Scalar, 4 > operator* (const VectorT< Scalar, 4 > &_v) const
 multiply 4D vector from right: Q*v
 
Scalar operator() (const VectorT< Scalar, 3 > _v) const
 evaluate quadric Q at vector v: v*Q*v
 
Scalar operator() (const VectorT< Scalar, 4 > _v) const
 evaluate quadric Q at vector v: v*Q*v
 

Private Attributes

Scalar a
 
Scalar b
 
Scalar c
 
Scalar d
 
Scalar e
 
Scalar f
 
Scalar g
 
Scalar h
 
Scalar i
 
Scalar j
 

Detailed Description

template<class Scalar>
class ACG::Geometry::QuadricT< Scalar >

/class QuadricT QuadricT.hh <ACG/Geometry/Types/QuadricT.hh>

Stores a quadric as a 4x4 symmetrix matrix. Used by the error quadric based mesh decimation algorithms.

Definition at line 86 of file QuadricT.hh.


The documentation for this class was generated from the following file: