Radium Engine
1.5.20
|
#include <Core/Math/Quadric.hpp>
Public Types | |
using | Matrix = Eigen::Matrix<Scalar, DIM, DIM> |
using | Vector = Eigen::Matrix<Scalar, DIM, 1> |
Public Member Functions | |
Quadric () | |
Construct an initialized quadric. | |
Quadric (const Matrix &a, const Vector &b, double c) | |
Construct and initialize a quadric. | |
Quadric (const Quadric< DIM > &q) | |
Construct a quadric from an other. | |
Quadric (const Vector &n, Scalar ndotp) | |
const Matrix & | getA () const |
Getters and setters. | |
void | setA (const Matrix &a) |
const Vector & | getB () const |
void | setB (const Vector &b) |
const double & | getC () const |
void | setC (const double &c) |
void | compute (const Vector &n, double ndotp) |
Eigen::EigenSolver< Matrix3 >::EigenvalueType | computeEigenValuesA () |
Computes eigen values and vectors of matrix A. | |
Eigen::EigenSolver< Matrix3 >::EigenvectorsType | computeEigenVectorsA () |
Quadric | operator+ (const Quadric &q) const |
Operators. | |
Quadric | operator* (const Scalar scal) |
Quadric & | operator+= (const Quadric &q) |
Quadric & | operator*= (Scalar scal) |
Static Public Attributes | |
static constexpr int | DIM = _DIM |
A representation for quadratic equation as v^T A v + 2 b^T v + c
Calculate the Quadric of the edge Qe = sum(Qf) with f all the faces adjacent to e Calculate vmin = Ae^(-1) be with Qe = (Ae, be, ce) Calculate the error on the edge error = vmin^T Ae vmin + 2 be^T vmin + ce with Qe = (Ae, be, ce)
Definition at line 27 of file Quadric.hpp.
using Ra::Core::Quadric< _DIM >::Matrix = Eigen::Matrix<Scalar, DIM, DIM> |
Definition at line 31 of file Quadric.hpp.
using Ra::Core::Quadric< _DIM >::Vector = Eigen::Matrix<Scalar, DIM, 1> |
Definition at line 32 of file Quadric.hpp.
|
inline |
Construct an initialized quadric.
Definition at line 85 of file Quadric.hpp.
|
inline |
Construct and initialize a quadric.
Definition at line 38 of file Quadric.hpp.
|
inline |
Construct a quadric from an other.
Definition at line 88 of file Quadric.hpp.
|
inline |
Create a quadric from a normal vector n and the scalar which represent the distance from the plane of normal n to the origin
Definition at line 91 of file Quadric.hpp.
|
inline |
Definition at line 95 of file Quadric.hpp.
|
inline |
Create a quadric from a normal vector n and the scalar which represent the distance from the plane of normal n to the origin
Definition at line 98 of file Quadric.hpp.
|
inline |
Computes eigen values and vectors of matrix A.
Definition at line 135 of file Quadric.hpp.
|
inline |
Definition at line 141 of file Quadric.hpp.
|
inline |
Getters and setters.
Definition at line 105 of file Quadric.hpp.
|
inline |
Definition at line 115 of file Quadric.hpp.
|
inline |
Definition at line 125 of file Quadric.hpp.
|
inline |
Definition at line 152 of file Quadric.hpp.
|
inline |
Definition at line 165 of file Quadric.hpp.
|
inline |
|
inline |
Definition at line 157 of file Quadric.hpp.
|
inline |
Definition at line 110 of file Quadric.hpp.
|
inline |
Definition at line 120 of file Quadric.hpp.
|
inline |
Definition at line 130 of file Quadric.hpp.
|
staticconstexpr |
Definition at line 30 of file Quadric.hpp.