Commit Graph

18 Commits

Author SHA1 Message Date
Paolo Cignoni 696f763c3d fix the is "inaccessible" issue with g++-4.0.1 2008-10-29 11:28:51 +00:00
Paolo Cignoni 07f2e976ea * change all remaining Transpose to transpose,
* update the gl/math wrappers to make them more Eigen friendly
  (and remove the useless, and not used, and somehow dangerous
   *Direct and *E functions)
* add automatic reinterpret_casting from Eigen::Matrix to vcg
  specialized types
2008-10-29 00:05:44 +00:00
Paolo Cignoni 0361427bc0 big cleaning in Point* and Matrix*, now they are very closed to be simple typedef of
Eigen's Matrix. Now the dilema is how to mimic those typedefs, using inheritence ?
or using the classic workaround: typename Point3<float>::Type; with Point3<T>::Type defined
to Eigen::Matrix<T,3,1>. Anyway currently I support both (and the inheritence scheme has
to be preserved for compatibility). The advantage of the second approach is that when
eigen has to evaluate an expression it uses an Eigen::Matrix<>, so it is probably better
to only use Eigen::Matrix but I'm not 100% sure that makes a big difference especially if
we add some automatic reinterpret_cast between Eigen::Matrix and vcg::Point*....
2008-10-28 20:06:17 +00:00
Paolo Cignoni c1551eddfd make Point derive Eigen's Matrix and some cleanning 2008-10-28 11:47:37 +00:00
Paolo Cignoni ab200fc950 Port to eigen2: state of the mess:
* curently nothing change if you don't define VCG_USE_EIGEN
* make Matrix*, Point3 and Point4 derive Eigen::Matrix (still ugly)
* now catching all the dot products to replace them by .dot()
  note that most of meshlab already compile
2008-10-27 19:35:17 +00:00
ganovelli d839bc9238 forgot & 2006-06-21 11:07:25 +00:00
ganovelli f533b8abeb changed return type of Zero() (to void) 2006-06-21 11:06:16 +00:00
Federico Ponchio b3e2bf3ba7 Including math/bash.h 2005-04-13 09:40:30 +00:00
Paolo Cignoni eda550ba49 minor changes to comply gcc compiler 2005-03-18 16:35:53 +00:00
Federico Ponchio 8da5fad884 Removed dependence from matrix44 and changed VectProd 2005-01-21 18:02:11 +00:00
ganovelli 99766e2bd0 added Dimension 2005-01-12 11:25:02 +00:00
ganovelli 11b41d02f3 added definition of vector product (not implemented) 2004-10-11 17:46:11 +00:00
ganovelli 2c75393c45 include assert.h added 2004-05-10 11:16:19 +00:00
Paolo Cignoni 9b763a1643 missing return value in zero() 2004-03-31 10:09:58 +00:00
mtarini 35d6370a57 added commets (doxy), uniformed with new style, now using math::, ...
added HomoNormalize(), Zero()... remade StableDot() (hand made sort).
2004-03-11 17:17:49 +00:00
Paolo Cignoni c735627fae Written some documentation and added to the space module 2004-03-10 21:38:40 +00:00
Paolo Cignoni b68d85894d added a math namespace reference 2004-03-10 00:35:24 +00:00
Paolo Cignoni c6f15ed3ad Edited Comments and GPL license 2004-02-10 01:11:28 +00:00