Nico Pietroni
b400ca4b75
added Mirror function
2014-04-07 06:29:32 +00:00
Paolo Cignoni
f4cf3b9221
Changed the name of the Distance from point to plane
...
from DistancePointPlane
to SignedDistancePointPlane
to underline the fact that it is SIGNED!!!
2012-01-18 11:44:42 +00:00
Paolo Cignoni
0a80e1e8ca
Cleaning up Plane3...
...
- comments (the sign of the offset please!!!)
- name of the Distance function -> DistancePointPlane(...)
- a missing normalization in the Init (!)
2011-11-15 11:11:12 +00:00
Marco Di Benedetto
b17d165d0c
Added SquaredDistance and made the point-plane version redirect to the plane-point one.
2009-10-06 16:22:35 +00:00
Paolo Cignoni
9fc361301d
Added missing Plane3::Import
2009-08-26 00:10:32 +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
b8df8c98db
debug: function Offset called without pars
2007-05-08 18:54:20 +00:00
Nico Pietroni
99afe015fd
setted to const the parameter passed to function Projection
2007-04-04 23:22:29 +00:00
Marco Di Benedetto
9163d261f7
Method Set(off, dir) now correctly normalizes direction and offset if template parameter NORM is set.
2005-09-26 19:49:30 +00:00
Paolo Cignoni
eda550ba49
minor changes to comply gcc compiler
2005-03-18 16:35:53 +00:00
Federico Ponchio
3532708a3a
Fixed bug in init.
2004-10-09 13:48:02 +00:00
Paolo Cignoni
b7fb0325c3
missing ending newline
2004-05-10 13:15:54 +00:00
Paolo Cignoni
e263653851
syntax error in set and better comment
2004-05-05 08:20:47 +00:00
Paolo Cignoni
167845dce4
Changed :
...
in Distance(plane, point) :
return plane.Direction() * point - plane.Offset;
in
return plane.Direction() * point - plane.Offset();
2004-04-28 16:36:55 +00:00
Paolo Cignoni
62e4e8825b
Changed :
...
in Init(p0, norm) _dist = p0 * _dir; in _offset = p0 * _dir;
Changed :
in Init(p0, p1, p2) _offset = p0 * _dist; in _offset = p0 * _dir;
2004-04-28 11:19:52 +00:00
Federico Ponchio
18ea5dd5db
Untested first draft.
2004-03-31 22:19:24 +00:00