Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

OpenMesh::Geometry::QuadricT< Scalar, Vector3Elem, Vector4Elem > Class Template Reference

/class QuadricT QuadricT.hh <OSG/Geometry/Types/QuadricT.hh> More...

#include <QuadricT.hh>

List of all members.

Public Methods

 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

Vec4 operator * (const Vec4 &_v) const
 multiply 4D vector from right: Q*v

Scalar operator() (const Vec3 _v) const
 evaluate quadric Q at vector v: v*Q*v

Scalar operator() (const Vec4 _v) const
 evaluate quadric Q at vector v: v*Q*v


Detailed Description

template<class Scalar, class Vector3Elem = VectorT<Scalar, 3>, class Vector4Elem = VectorT<Scalar, 4>>
class OpenMesh::Geometry::QuadricT< Scalar, Vector3Elem, Vector4Elem >

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

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


The documentation for this class was generated from the following file:
acg pic Project OpenMesh, ©  Computer Graphics Group, RWTH Aachen. Documentation generated using doxygen .