OpenMesh.Core.Geometry.QuadricT



struct QuadricT (Scalar);
/class QuadricT QuadricT .hh

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

QuadricT opCall (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 opCall (Scalar _a = 0, Scalar _b = 0, Scalar _c = 0, Scalar _d = 0);
constructor from given plane equation: ax+by+cz+d_=0

QuadricT opCall (Scalar[] v);
constructor from given plane equation: ax+by+cz+d_=0

or from distance to a point: x,y,z

or from upper triangle of 4x4 symmetric matrix.

void clear ();
set all entries to zero

void opAddAssign (ref QuadricT _q);
add quadrics

void opMulAssign (Scalar _s);
multiply by scalar

template opMul (_Vec4)
multiply 4D vector from right: Q*v

_Vec4 opMul (ref _Vec4 _v);
multiply 4D vector from right: Q*v

template eval (_Vec)
evaluate quadric Q at (3D or 4D) vector v: v*Q*v

Scalar eval (ref _Vec _v);
evaluate quadric Q at (3D or 4D) vector v: v*Q*v

template evaluate (_Vec3,uint N)
evaluate quadric Q at 3D vector v: v*Q*v

Scalar evaluate (ref _Vec3 _v);
evaluate quadric Q at 3D vector v: v*Q*v

alias Quadricf ;
Quadric using floats

alias Quadricd ;
Quadric using double

Page was generated with CanDyDOC on Fri Oct 12 16:12:36 2007