Commit Graph

205 Commits

Author SHA1 Message Date
Paolo Cignoni 26ce24dec3 Added method for sorting the singular values computed by the SingularValueDecomposition procedure 2006-04-29 10:20:52 +00:00
Paolo Cignoni 3ddd189349 changes necessary for gcc 3.4.5 on linux 64bit. Please take note of case-sensitivity of filenames 2006-04-11 08:09:35 +00:00
Paolo Cignoni 462fa9effe extra includes necessary for compilation of meshlab on AMD 64 with gcc 3.4.5 2006-03-29 09:25:49 +00:00
Paolo Cignoni 5a2ed7b59d Corrected intialization of flag, must be zero. 2006-01-22 17:01:40 +00:00
Nico Pietroni cf9fd0ca9f added operators:
operator -= ( const Matrix33Diag<S>  &p )
           Matrix33  operator - ( const Matrix33Diag<S>  &p )
           Matrix33  operator + ( const Matrix33 &m )
           Matrix33  operator + ( const Matrix33Diag<S>  &p )
2006-01-20 16:41:44 +00:00
Marco Callieri e7b6fd9b9f in FileWrite, added file closing after finishing 2006-01-12 13:12:54 +00:00
Marco Callieri abbcfe10a9 corrected UnProject, it's necessary also a ZDepth value to perform inverse projection 2005-12-12 16:53:43 +00:00
Marco Callieri f6261d2a45 Added Unproject, from 2D local space + Zdepth to 3D camera space. Added ViewportToLocal, inverse of LocalToViewport 2005-12-12 16:52:55 +00:00
ganovelli 7229c77576 added diagonal matrix, outer produce and namespace 2005-12-12 11:25:00 +00:00
ganovelli dca1252d91 missing type added 2005-12-12 11:24:09 +00:00
Marco Callieri 1257fd3a4a added commodity function ProjectWorldtoViewport() to obtain directly pixel indices without calling two separate function of two different objects 2005-12-07 10:57:52 +00:00
Marco Callieri ee3d9a28e3 in Shot<S>::Axis changed Row3 to GetRow3 . row3 was the old method name of Matrix44 2005-12-02 16:14:35 +00:00
Paolo Cignoni 2d58480432 Corrected bug in == and != Matrix44 operators 2005-12-02 09:46:49 +00:00
Paolo Cignoni 6d5c0cd0f7 Removed excess ';' from end of template functions, for gcc compiling 2005-12-01 01:03:37 +00:00
ganovelli 29208970f0 added access to similarity (just for symmetry with Camera() ) 2005-11-23 14:18:35 +00:00
ganovelli 63b79da781 Empty constructor added, untemplated class Shotf and Shotd added
usage: Shotf myShot;
corrected member access rights
2005-11-23 11:58:52 +00:00
ganovelli 43b85e9405 created 2005-11-18 14:46:23 +00:00
Paolo Cignoni 0f7d072b0f Changed Invert -> FastInvert for the function based on the maple expansion 2005-11-14 10:28:25 +00:00
Federico Ponchio cf9d5743fb Added newline at end of file (tired of stupid warnings...) 2005-10-24 09:20:28 +00:00
Federico Ponchio a06ae78c6e Changed a Zero in SetZero in WeightedCrossCovariance() (again) 2005-10-13 15:45:23 +00:00
Federico Ponchio 5008465972 Added IsOrtho... 2005-10-12 16:43:32 +00:00
Nico Pietroni 7580221931 corrected sintax error on singular value decomposition 2005-10-05 17:06:12 +00:00
Paolo Cignoni 5ef378ec5a add define header 2005-10-03 16:19:44 +00:00
ganovelli 44e86f5a9b added inverse by SVD 2005-09-29 09:53:58 +00:00
Paolo Cignoni f8aafdd20d removed signed/unsigned warning 2005-09-16 11:51:23 +00:00
Paolo Cignoni 2c5c27e3fd First working version 2005-07-28 06:34:03 +00:00
Paolo Cignoni 44eb40324f small gcc-related compiling issues (typenames,ending cr, initialization order) 2005-07-11 13:16:34 +00:00
Paolo Cignoni bd4e3b01b0 Removed default values from the implementation of SetCavalieri and SetIsometric 2005-07-01 10:55:42 +00:00
Paolo Cignoni 494f6ccff7 aggiunto:
- l' enum dei tipi  PERSPECTIVE,  ORTHO, ISOMETRIC,  CAVALIERI
- inline void SetCavalieri(...)
- inline void SetIsometric(...)

- modificato
- void SetOrtho( .. )
2005-06-29 14:59:03 +00:00
ganovelli 42831cd32b added Matrix44Diag 2005-06-28 17:42:47 +00:00
Paolo Cignoni 88792bfc33 Completed Shear Matrix code and comments,
Added use of swap inside Transpose
Added more complete comments on the usage of Decompose
2005-06-17 05:28:47 +00:00
Paolo Cignoni 8d51af2c92 Corrected small bug in SetRange (H was resized to n instead of n+1) 2005-06-17 00:54:55 +00:00
ganovelli ccbfc728cb added include of algorithm 2005-06-14 14:27:00 +00:00
Paolo Cignoni fe5d343fd0 Added Various missing functions: SetShearXY, SetShearXZ, SetShearYZ, SetScale for point3 and Decompose
Completed *=(scalar); made uniform GetRow and GetColumn
2005-06-10 15:04:12 +00:00
Paolo Cignoni c379550e2e Added include assert.h and cast to ScalarType for a pow in SetRange() function. 2005-06-10 14:59:39 +00:00
Paolo Cignoni bebc58f9b1 Changed a Zero in SetZero in WeightedCrossCovariance() 2005-06-10 14:51:54 +00:00
Nico Pietroni 47b654861c Added Norm Function 2005-06-10 11:46:49 +00:00
Paolo Cignoni 4ae07c24c1 Added typedef Histogramf and Histogramd 2005-06-09 14:19:55 +00:00
ganovelli b14537dcff changed from Matrix33Ide to MatrixeeDiag 2005-06-07 14:29:56 +00:00
Federico Ponchio 6c1fdb3066 Added fabs() to variance, which can sometime be negative in case
of rounding errors (and sqrt chokes on it).
2005-06-07 09:37:33 +00:00
Paolo Cignoni 17fb55c9e0 Added Percentile and removed small bug in Add 2005-06-07 07:44:08 +00:00
ganovelli 5aea057836 Matrix33Ide Added: it implements diagonal matrix. Added only operator += in Matrix33 2005-05-23 15:05:26 +00:00
ganovelli c3db21bd39 tolto il const a interpolate 2005-04-17 21:57:03 +00:00
Federico Ponchio 59c1559e59 Typo: Point3 -> Point4 2005-04-15 09:19:50 +00:00
Federico Ponchio f766cf6773 *** empty log message *** 2005-04-14 17:23:08 +00:00
Federico Ponchio 2328e5b1e4 *** empty log message *** 2005-04-14 11:35:09 +00:00
Nico Pietroni 9cb3c240e6 changed swap to math::Swap in Traspose Function 2005-04-11 14:11:22 +00:00
Paolo Cignoni 1363b8c4a8 Added missing functions Avg, rms etc, now fully (almost) functional 2005-04-04 10:48:35 +00:00
Paolo Cignoni 825c3b9a0c minor changes to comply gcc compiler 2005-03-30 17:18:13 +00:00
Paolo Cignoni f8fb041641 minor bugs fixed 2005-03-18 16:31:02 +00:00
Paolo Cignoni 4c1f6e73b6 removed small gcc compiling issues 2005-03-18 00:14:40 +00:00
Paolo Cignoni 27694f7a67 Added operator*=( std::vector<PointType> ...) to apply a matrix to a vector of vertexes (replacement of the old style mesh.Apply(tr). 2005-03-15 11:40:56 +00:00
Paolo Cignoni c272706c18 Added missing include<vector> 2005-03-14 09:23:40 +00:00
Paolo Cignoni b01f11a93e Corrected declaration and some syntax errors in GetFrustum 2005-02-22 10:57:58 +00:00
ganovelli 31ac4bbe6f GetFrustum moved from gl/camera to math/camera.h 2005-02-21 18:11:47 +00:00
Paolo Cignoni 5d6d76694c Added matrix-vector multiplication 2005-02-16 11:11:12 +00:00
Paolo Cignoni 2fe93647ab added principal point 2005-02-15 14:55:52 +00:00
Federico Ponchio 40e7925c1c <...Point3.h> -> <...point3.h> 2005-01-22 11:20:20 +00:00
Paolo Cignoni b0978eb3d1 *** empty log message *** 2005-01-18 16:40:50 +00:00
Federico Ponchio 3cf27b9f2b Far and end are reserved. 2005-01-18 15:14:22 +00:00
Federico Ponchio fa6da0bbf3 vcg/Point.h -> vcg/point.h (again!) 2005-01-14 15:28:33 +00:00
ganovelli c3627e348e corretto cambiamento di sistema di rif. 2005-01-05 13:26:15 +00:00
ganovelli c2fb300d85 aggiunte conversione di coordinate 2005-01-05 13:25:29 +00:00
Paolo Cignoni 4a7a4ce0b3 *** empty log message *** 2004-12-16 11:22:30 +00:00
Paolo Cignoni 1b08ca6ab1 *** empty log message *** 2004-12-16 11:21:03 +00:00
Paolo Cignoni 02aee67598 *** empty log message *** 2004-12-15 18:45:50 +00:00
Paolo Cignoni 71a73a7ad6 added an alternative QuadricMinimization (we should use LRU decomposition!!) 2004-12-10 01:31:59 +00:00
Paolo Cignoni 1380ee7712 added an inline and removed loggng 2004-12-10 01:03:15 +00:00
Federico Ponchio d02c45b27f _near and _far are reserved keywords 2004-12-04 15:51:22 +00:00
Federico Ponchio a53f846189 #include <...Point --> #include <...point
Again... Gano malefico.
2004-11-30 21:48:47 +00:00
Paolo Cignoni 1d72b1f687 removed comment in comment gcc warning 2004-11-23 10:15:38 +00:00
ganovelli e70b193cf0 Point?.h to point?.h 2004-11-03 09:40:53 +00:00
ganovelli d0c1352cf3 SetPerspective and SetFrustum added (same parameters as in opengl) 2004-11-03 09:32:50 +00:00
ganovelli 92f008a33d replaced Matrix44f to Matrix44<S>, added LookAt 2004-11-03 09:25:52 +00:00
Federico Ponchio 8de360b0ac typedef ScalarType ScalarType; was a problem on g++ 2004-10-25 16:23:51 +00:00
ganovelli 5f84e02239 template changed 2004-10-25 16:15:59 +00:00
Federico Ponchio 1a66972c51 return in operator+ added. 2004-10-22 14:41:30 +00:00
Federico Ponchio 942705dd10 m.element(x, y) -> m[x][y] 2004-10-22 14:35:42 +00:00
Federico Ponchio 29b2d65bb3 #include <...Point --> #include <...point 2004-10-22 14:29:40 +00:00
Paolo Cignoni 13190dfe88 Updated interface: all Matrix classes have now the same interface 2004-10-18 15:03:14 +00:00
Paolo Cignoni 77dc6537fa bug fixed in SingularValueBacksubstitution 2004-10-18 12:18:10 +00:00
Paolo Cignoni 1422c15f6f - Added SetDiagonal method
- Bug fixed in RowsNumber and ColumnsNumber
2004-10-18 12:16:57 +00:00
Paolo Cignoni 7767e4a63b Added SingularValueDecomposition method 2004-10-18 08:25:28 +00:00
Paolo Cignoni d403de71f8 Little fix on Jacobi() function 2004-10-15 14:17:53 +00:00
Paolo Cignoni 546d4d88e1 Initial commit 2004-10-15 13:44:09 +00:00
Paolo Cignoni 3c64d38fd1 Little fix on ViewPoint() method 2004-10-07 14:41:31 +00:00
Paolo Cignoni ec6ec72821 Remove glew.h include 2004-10-07 14:39:57 +00:00
ganovelli eaea30aa5e added LookAt,LookToward 2004-10-07 14:24:53 +00:00
ganovelli 23b83d0a7e added function to take rows and comlumns. Added toMatrix and fromMatrix to comply
RotationTYpe prototype in Similarity.h
2004-10-07 14:23:57 +00:00
ganovelli 30c9628f43 y axis reverse in projecting (!) 2004-10-07 14:22:38 +00:00
ganovelli 5d07b02cf6 templated on the kind of class used to implement rotation
(default is QUternion but it can be Matrix44 as well)
2004-10-07 13:55:47 +00:00
ganovelli 23a3ce597e added SetIdentity 2004-10-07 13:54:03 +00:00
ganovelli 4a28f05056 version 5-10-2004 in progress 2004-10-05 19:04:25 +00:00
ganovelli c97e11dbb8 re-creation 2004-09-15 22:58:05 +00:00
ganovelli 8bb2f10d57 created 2004-09-14 19:48:27 +00:00
Paolo Cignoni 14a1c4c1e7 Aggiunte macro sin/cos/atan per C++ Builder 2004-08-31 15:42:59 +00:00
ganovelli 0bbd5bb33b minor changes to comply gcc compiler (typename's and stuff) 2004-08-25 15:15:27 +00:00
Paolo Cignoni 2376184409 removed uppercase references in include 2004-07-13 06:48:30 +00:00
Paolo Cignoni 535a76ce2b Initial Release 2004-06-24 09:12:28 +00:00
Paolo Cignoni ae77c7c439 added InverseMatrix, 2004-06-04 13:35:07 +00:00