Commit Graph

87 Commits

Author SHA1 Message Date
Paolo Cignoni 7befff7bec make point2 derived Eigen's Matrix, and a set of minimal fixes to make meshlab compile
with both old and new version. The fixes include:
- dot product: vec0 * vec1 => vec0.dot(vec1) (I added .dot() to the old Point classes too)
- Transpose: Transpose is an Eigen type, so we cannot keep it if Eigen is used. Therefore
  I added a .tranpose() to old matrix classes, and modified most of the Transpose() to transpose()
  both in vcg and meshlab. In fact, transpose() are free with Eigen, it simply returns a transpose
  expression without copies. On the other be carefull:  m = m.transpose() won't work as expected,
  here me must evaluate to a temporary: m = m.transpose().eval(); However, this operation in very
  rarely needed: you transpose at the same sime you set m, or you use m.transpose() directly.
- the last issue is Normalize which both modifies *this and return a ref to it. This behavior
  don't make sense anymore when using expression template, e.g., in (a+b).Normalize(), the type
  of a+b if not a Point (or whatever Vector types), it an expression of the addition of 2 points,
  so we cannot modify the value of *this, since there is no value. Therefore I've already changed
  all those .Normalize() of expressions to the Eigen's version .normalized().
- Finally I've changed the Zero to SetZero in the old Point classes too.
2008-10-28 00:59:46 +00:00
ganovelli 7021c9af38 added warning for deprecation 2008-09-30 10:35:44 +00:00
ganovelli b5bca977a7 added pragma message to deprecate this way to define the simplex 2008-09-28 14:30:09 +00:00
ganovelli 68d900ec7e changes to compile previous commit with gcc 2008-09-24 09:15:38 +00:00
ganovelli a952bb1801 DistanceFunctor templated on the type of the query
Added PointNormalDistanceFunctor
2008-09-24 08:42:17 +00:00
Paolo Cignoni 559161beda Changed the name of the pointer to edge Ep into the more standard VEp (like vertex plus and the other vertex to simplex adjacencies VFp and VTp) 2008-08-20 20:34:01 +00:00
Nico Pietroni 491317ecd5 *** empty log message *** 2008-01-07 10:36:00 +00:00
Nico Pietroni 00f3907e1b *** empty log message *** 2007-10-11 08:39:05 +00:00
mtarini 84946de883 Texture coord name change! "TCoord" and "Texture" are BAD. "TexCoord" is GOOD. 2007-03-12 15:42:11 +00:00
Paolo Cignoni b7ab2cfe56 VTb moved to VTp 2007-02-26 14:21:44 +00:00
ganovelli 01a81c63de added QualityType to comply vertexplus type 2007-02-20 14:08:34 +00:00
Nico Pietroni 25b916162d corrected wrong initial define
from:

#ifndef __VCGLIB_VERTEX__VN__TYPE
#define __VCGLIB_VERTEX__VN__TYPE

to:

#ifndef __VCGLIB_VERTEX__VNVT__TYPE
#define __VCGLIB_VERTEX__VNVT__TYPE
2007-01-25 01:08:09 +00:00
mtarini 8b66ea4b94 newline at endoffile 2006-12-14 13:38:10 +00:00
Nico Pietroni e35961b498 *** empty log message *** 2006-11-10 11:50:57 +00:00
Marco Di Benedetto 1fbdc88c2c First Commit. 2006-09-28 13:30:39 +00:00
Paolo Cignoni 837f3482f5 added severla comments
reimplemented operator ()
2006-08-23 15:35:36 +00:00
Paolo Cignoni 7810ccc68e added minimal comments 2006-08-23 15:34:20 +00:00
ganovelli 19a6e60812 cambiato VTb in VTp 2006-07-10 17:04:41 +00:00
Marco Di Benedetto 3c222fd583 First Commit. 2006-05-08 15:19:21 +00:00
Paolo Cignoni 53dfb84a07 newline at end of file please 2006-04-11 08:41:31 +00:00
Paolo Cignoni f8e4bf2c94 Added HasFlags and initialization of flags at construction. 2005-11-12 18:41:14 +00:00
Paolo Cignoni 9d764b3a8c Added cVFp member 2005-10-14 13:25:50 +00:00
Nico Pietroni dae0988085 added getBBox method 2005-10-06 14:26:39 +00:00
Nico Pietroni 644fca68bf minor changes 2005-10-05 17:39:14 +00:00
Nico Pietroni de125d7f59 first release version 2005-10-03 14:13:13 +00:00
Nico Pietroni c19fce46a3 first release version 2005-09-30 12:51:39 +00:00
Paolo Cignoni 2cfe4038ab *** empty log message *** 2005-09-14 14:32:35 +00:00
Paolo Cignoni e3b4ba1f45 Initial commit 2005-07-06 08:09:26 +00:00
ganovelli 3d0dee1073 *** empty log message *** 2005-06-30 10:16:11 +00:00
Paolo Cignoni 7761b396ab Initial Commit. 2005-05-17 13:42:25 +00:00
Paolo Cignoni 1cb26bdfbd Created (Vertex-Face Topology And Incremental Mark). 2005-04-14 17:25:42 +00:00
Paolo Cignoni 9d106c50c1 Minor changes 2005-03-18 16:38:36 +00:00
Paolo Cignoni b4b7f45041 Removed NormalizedNormalV (out of standard and wrong) and
added the member functions Normal and NormalizedNormal() (just like for faces)
2005-03-18 00:13:45 +00:00
ganovelli f9ca9b6ad8 *** empty log message *** 2005-03-14 16:46:50 +00:00
Paolo Cignoni 7b5459a777 Wrote down the final right version of the naming rules (af and NOT fa) 2005-03-11 13:33:38 +00:00
Paolo Cignoni d829ce7db6 Removed wrong named vertex and face configuration files 2005-03-11 12:10:59 +00:00
Paolo Cignoni 5bd4d8b2b1 Better Doxygen documentation 2004-10-28 00:56:44 +00:00
ganovelli d4e5b26c12 added default template paramteer 2004-10-25 16:17:30 +00:00
Federico Ponchio e99cb94a03 Created. 2004-10-22 14:35:11 +00:00
ganovelli f10b76771b added template on corrdinate type (default Point3) 2004-10-11 17:45:05 +00:00
Paolo Cignoni db05ba4282 DUMMY classes definition moved into vcg namespace 2004-09-28 15:24:56 +00:00
Paolo Cignoni 359c3a841d Initial Update 2004-09-09 23:15:43 +00:00
ganovelli 6137d15e7e removed 2004-09-09 12:51:01 +00:00
ganovelli 11ed8f5715 created (changed from afvnvm) 2004-09-09 12:50:39 +00:00
ganovelli 0bbd5bb33b minor changes to comply gcc compiler (typename's and stuff) 2004-08-25 15:15:27 +00:00
Nico Pietroni fe34dc9c78 vertex with normal FFtopology and temporary mark for decimation 2004-08-10 14:53:11 +00:00
Nico Pietroni 2ce9499498 corrected NormalizedNormalV function... 2004-07-20 15:24:53 +00:00
ganovelli 16e27ee1e8 VFb moved to VFp, userbit to bitflag,setV, inclusion of pos.h 2004-07-15 11:25:01 +00:00
Nico Pietroni 9b76dfbd2b adde NormalizedNormalV funtion to compute the normal on a vertex 2004-07-15 10:13:48 +00:00
ganovelli 24583cbed2 muted from atvnvm 2004-07-09 10:10:22 +00:00