Paolo Cignoni
e768943f3e
Small changes in the long long way to making meshlab and the vcglib really float/double independent
2014-06-18 17:29:34 +00:00
Paolo Cignoni
e6e7999c6c
Added an implementation of the Dave Rusin’s Disco Ball algorithm for the generation of regular points on a sphere.
2014-06-17 14:51:20 +00:00
Paolo Cignoni
db0a706384
Added methods to Histogram and Distribution to get back the number of inserted samples and their total sum
2014-05-13 10:54:42 +00:00
Paolo Cignoni
81ab17c28a
commented out unused local variable
2014-04-25 09:21:41 +00:00
Nico Pietroni
2f871fc16e
corrected one bug in Add to insert the value in last bin since upper bound is +inf
2014-04-24 16:07:13 +00:00
Paolo Cignoni
c280fd8e23
removed a leftover "solve" method. Use eigen...
2014-04-17 08:28:20 +00:00
Paolo Cignoni
7dbcb078e5
Standardized the generate method of the marsenne twister random generator in order to get also a unsigned capped random generation (like all the other generate() of the other random generators)
2014-04-17 08:19:06 +00:00
Massimiliano Corsini
0950b97775
invalid output range - fixed
2014-02-04 16:09:36 +00:00
Paolo Cignoni
6bd3faae14
removed a wrongly surviving duplicate copy of the space/point_matching.h. It was moved one years ago but for some strange svn reasons it was still around...
...
Killed.
2013-12-01 22:54:33 +00:00
Nico Pietroni
a445902e56
corrected 2 warnings on castings
2013-10-23 16:57:28 +00:00
Paolo Cignoni
04268b170f
Removed all references to the useless old vcg::math::Swap
2013-07-26 07:01:21 +00:00
Paolo Cignoni
90bb95a971
Refactorized to a uniform naming and parameters the various templated functions for generating random points
...
GenerateBarycentricUniform
GeneratePointInBox3Uniform
GeneratePointOnUnitSphereUniform
GeneratePointInUnitBallUniform
2013-06-24 08:34:53 +00:00
mtarini
90cdbb6214
(just fixed a warning-producing redundant assert)
2013-06-05 11:08:55 +00:00
Paolo Cignoni
246345bf19
removed a weird "#define static_assert assert" that was surviving since 2004...
2013-03-22 16:43:59 +00:00
Paolo Cignoni
ba58ef9c1e
corrected stupid error did in the conversion process (inverse was not returning anything...)
2013-03-19 22:04:35 +00:00
Paolo Cignoni
837329d98c
Renaming to settle the old attempt of integrally using eigen matrix for matrix44 and matrix33
2013-03-19 21:53:52 +00:00
Paolo Cignoni
e1dda51e85
Renaming to settle the old attempt of integrally using eigen matrix for matrix44 and matrix33
2013-03-19 21:52:39 +00:00
Paolo Cignoni
94a9b9a0f9
Renaming to settle the old attempt of integrally using eigen matrix for matrix44 and matrix33
2013-03-19 21:51:13 +00:00
Paolo Cignoni
2b47dcbb3d
renamed the unused old lin_algebra and Matrix. just to be sure that NOBODY use them.
2013-03-19 17:05:56 +00:00
Paolo Cignoni
33c341b464
harmless change: added a missing vcg::
2013-03-19 17:04:07 +00:00
Paolo Cignoni
2e65cae10e
HEAVY CHANGE. Further cleaning of the matrix classes of VCG.
...
Get rid of all the unused stuff.
internally use Eigen for computing Inverse.
Removed the stupid incomprehensible method Invert() that changed the matrix itself.
Nobody was using it in a reasonable way.
2013-03-19 16:59:45 +00:00
Paolo Cignoni
d3d50e6858
Added two functions to generate point inside a box and over the surface of a sphere.
2013-02-23 06:15:23 +00:00
ganovelli
357ef4e8f9
reverted last committ (done by mistake :) )
2012-12-05 11:37:19 +00:00
ganovelli
6bc53d8376
minor
2012-12-05 11:23:30 +00:00
Federico Ponchio
2832d2e76d
added a const
2012-11-21 11:38:51 +00:00
Paolo Cignoni
c932c5d60a
Removed Covariance computing function from Matrix Class, moved into fitting
2012-10-22 18:34:08 +00:00
Paolo Cignoni
19675a4e33
Deprecating the use of old dangerous linear algebra code. Please use Eigen!
...
Now attempting to include lin_algebra will block your compilation...
2012-10-11 10:48:55 +00:00
Paolo Cignoni
1ba693c4f7
Orthography lenght -> length
2012-10-08 09:07:50 +00:00
Federico Ponchio
0ac7034397
added method to get Projection matrix given near and far.
2012-08-29 13:21:22 +00:00
ganovelli
924cf9a4ec
changed a comment
2012-07-09 15:12:56 +00:00
Paolo Cignoni
486475d4a3
added another assert to histogram to avoid trash result...
2012-05-05 14:55:50 +00:00
Paolo Cignoni
3811efacd8
removed useless include
2012-04-04 09:59:42 +00:00
Paolo Cignoni
e3d0a6d0cb
added method for generating a random point into a triangle (it generate three random barycentric coords)
2012-03-30 23:42:04 +00:00
Nico Pietroni
fe71126700
added TransformationMatrix function
2012-03-29 16:34:31 +00:00
Paolo Cignoni
29fdad2622
Added constructor with seed to the Mersenne rnd generator
2012-02-27 06:58:17 +00:00
Nico Pietroni
bb7fbdcc88
line 193 corrected composition of transformations
2012-01-12 00:52:04 +00:00
ganovelli
f4010f0dce
corrected setOrtho
2011-12-07 13:15:28 +00:00
ganovelli
27e6c3eb39
*= fixed
2011-11-21 16:47:13 +00:00
Paolo Cignoni
e340e6d1c0
removed old lib svd and substituted with eigen.
...
Anyway is someone really using this file?
2011-11-21 09:09:58 +00:00
ganovelli
99a41cf446
corrected ApplyRigidTransformation (zeroed last row of rot)
2011-10-28 14:20:27 +00:00
Paolo Cignoni
3b7609a7e8
Added algorithms for packing into a square rectangles and polygons
2011-10-20 22:29:20 +00:00
ganovelli
f20ecb9db7
corrected a bug in ApplySimilarity (the translation was not zeroed when
...
transforming the rotational part)
2011-10-11 15:41:54 +00:00
Paolo Cignoni
2fe129645b
Rolled back
2011-10-05 15:04:40 +00:00
Paolo Cignoni
7bb11892bb
fixed ApplySimilarity when a scaling factor is present
2011-06-15 12:32:19 +00:00
Paolo Cignoni
bd8f86bff5
Removed other dependencies from the meshlab basecode...
2011-06-06 00:13:10 +00:00
Paolo Cignoni
a7e4270ddb
Moved here from meshlab. Very specialized class to perform texture quadric simplification using a 5dim quadric that simultaneously optimize texure and positions.
2011-06-04 21:54:39 +00:00
Paolo Cignoni
9b2574b767
fixed a funcrion parameter name that was equal to the template argument
2011-05-27 09:26:52 +00:00
Massimiliano Corsini
f0a1d1d567
ApplySimilarity finished and tested
2011-05-25 06:58:39 +00:00
Massimiliano Corsini
2a450c7c46
add ApplySimilarity - version with vcg::Similarity is unfinished
2011-05-24 21:13:05 +00:00
Massimiliano Corsini
f35731d425
ApplyRigidTransformation fixed
2011-05-24 12:13:21 +00:00
Massimiliano Corsini
86b12c5fc7
ApplyRigidTransformation has been modified but not fixed yet
...
a new method to convert focal in px in focal in mm has been added
2011-05-23 16:30:34 +00:00
ganovelli
b61d049408
ongoing testing
2011-05-23 15:09:21 +00:00
Massimiliano Corsini
b31fc9ddec
2011-05-23 14:09:16 +00:00
Massimiliano Corsini
eec4f43178
add a method to roto-translate the camera frame
...
add a service method to adjust the camera-shot when the World coordinates are scaled
2011-05-19 16:28:51 +00:00
Massimiliano Corsini
9349591548
fix some comments about the assumption made by the Shot
2011-05-19 08:46:38 +00:00
Paolo Cignoni
2c15159659
fixed multmatrix when a scaling factor is present
2011-05-03 15:19:04 +00:00
Paolo Cignoni
f310574e04
- Shot::MultMatrix(Matrix44) now accepts matrices with scaling. Corrected the rotation multiplication.
2011-04-11 09:39:20 +00:00
Paolo Cignoni
8fd11ae657
harmless gcc warnings
2011-02-17 11:40:22 +00:00
Paolo Cignoni
88107edef1
Added Shot::GetViewDir() method
2011-02-17 09:58:16 +00:00
Federico Ponchio
ef57d3e7e5
interpolate -> Interpolate.
2010-11-15 00:16:40 +00:00
Paolo Cignoni
343493ef11
Moved the ORTHO, PERSPECTIVE enums from the vcg namespace to the camera class namespace.
2010-10-31 13:19:09 +00:00
Paolo Cignoni
a9db0be12d
shotf and shotd are TYPEDEF not SUBCLASS !!!
2010-10-21 13:41:29 +00:00
Paolo Cignoni
2bdd323387
removed harmless warnings
2010-10-15 09:14:35 +00:00
Paolo Cignoni
d4786a1702
added maxElem minElem functions that returns values of the added elements and that can be outside the minmax range of the histogram
2010-10-01 08:59:25 +00:00
Paolo Cignoni
af5e0eb46b
small changes to the histogram interface to allow the use of weighted histograms
2010-09-21 22:33:37 +00:00
Paolo Cignoni
349e9869cf
Updated many vcg files to do not use anymore the vcg::Max(a,b) and vcg::Min(a,b). Use the std version instead.
2010-09-21 22:09:13 +00:00
Paolo Cignoni
47138fce2f
WARNING: important change. Removed the useless vcg::math::Max(a,b) that mimicked the std::max, and changed into a three argument Max(a,b,c) (quite useful in a lot of context and missing in std::.
2010-09-21 22:00:39 +00:00
Paolo Cignoni
d263446d0e
small changed needed for allowing derivation of extended classes
2010-09-13 09:42:25 +00:00
Paolo Cignoni
2bfd589613
disambiguated a pow call
2010-09-07 22:14:20 +00:00
matteodelle
3064a869cc
Michele Sottile: added GetFovFromFocal
2010-07-21 15:54:31 +00:00
ganovelli
eb3f1a97fc
added HasPerVertexVFAdjacency and HasPerFaceVFAdjacency. Removed
...
generic HasVFAdjacency which made the logical AND of the two and updated the
relative calls.
2010-06-24 12:35:37 +00:00
matteodelle
155cfe6845
New coords conversion function
2010-03-30 19:58:35 +00:00
Paolo Cignoni
a201459a30
removed harmless warnings
2010-03-18 14:20:53 +00:00
Paolo Cignoni
e4b0019e90
removed harmless warnings
2010-03-18 10:08:12 +00:00
Paolo Cignoni
eca7114e6c
corrected a small error inserted by mistake in the last commit...
2010-03-16 14:46:55 +00:00
Paolo Cignoni
80f825a428
removed harmless warnings
2010-03-16 14:25:30 +00:00
Paolo Cignoni
9f8497013f
removed harmless warnings
2010-02-24 09:55:28 +00:00
Paolo Cignoni
41fda194bd
Correctly defined int inside loop as per MSVC requirements, changed assert as to be more accurate
2010-02-11 20:06:14 +00:00
Paolo Cignoni
c72bfe6f63
Corrected a bug in the Distribution class and added useful access bin counting functions members to the Histogram class
2010-01-11 22:57:32 +00:00
Paolo Cignoni
3765096290
Added the possibility to wrap an existing coefficient vector
2010-01-08 10:36:09 +00:00
Paolo Cignoni
3705cb3cb9
Improved speed by using DynamicLegendre and precomputing Scaling Factors
2009-10-14 16:10:42 +00:00
Paolo Cignoni
8d8ed1efa8
Memoized version of Legendre computation called DynamicLegendre
2009-10-14 16:09:30 +00:00
Marco Callieri
0ccb9e8992
added support function (_substitute) to umproject 2D points + depth when the rotation matrix is not exactly rigid (such as the one calculated by Textailor, Tsai and Garcia)
2009-09-08 14:05:49 +00:00
mtarini
7f83000b93
fixed a nasty bug in Matrix44<T>::ToEulerAngles (but it still suffers from Gimbal Lock)
2009-08-21 12:42:16 +00:00
Paolo Cignoni
9608ec798b
compilation fixes with Eigen
2009-07-21 07:29:13 +00:00
Nico Pietroni
7aefe275b3
added #include<stdio> because of fprintf call on Histogram<ScalarType>::FileWrite function
2009-07-17 17:42:51 +00:00
Paolo Cignoni
e6fbdfb9f6
Added static constuctor that imports from different Quaternion types (overrides same static contstructor of father's Point4 class)
2009-07-10 13:18:24 +00:00
Paolo Cignoni
70d3ccfa23
Removed harmless warnings
2009-06-11 23:55:06 +00:00
Paolo Cignoni
b441009e15
added an invalid method that says if a shot is "reasonable" or not. A shot is valid if its Intrinsics are valid.
2009-05-21 23:04:09 +00:00
Paolo Cignoni
12c61c4622
Added ByLine() method, which initializes the quadric as the squared distance from a given line.
...
This works with a vcg::Ray() too, but the caller should be aware that the distance "before" the ray origin is computed as if the ray were a line.
2009-03-31 09:17:39 +00:00
Paolo Cignoni
19ae359bf1
Added unified interface for open and close 0,1 intervals and
...
extern boxmuller gaussian generator.
2009-02-04 12:06:58 +00:00
Paolo Cignoni
3d5ccb47f9
compilation fixes with eigen (norm2=>squaredNorm, a*b => a.dot(b))
2009-01-23 16:58:47 +00:00
Paolo Cignoni
9a47677ed2
compilation fixes with eigen
2009-01-22 23:10:24 +00:00
granzuglia
de75285ed0
added const qualifier to transpose function
2009-01-22 10:18:40 +00:00
Paolo Cignoni
91968941c8
removed abs and sqrt ambiguities
2009-01-18 23:56:28 +00:00
Paolo Cignoni
07fd44359d
Added Distribution Class, a more safe and slower class for managing distribution of scalar values that has the same interface of Histogram
2009-01-15 23:54:00 +00:00
Federico Ponchio
d0ad7cbacc
fabs -> math::Abs
2009-01-15 14:29:05 +00:00
granzuglia
72eb2f753e
added GetColumn3,GetColumn4,SetColumn
2009-01-15 13:42:30 +00:00
Paolo Cignoni
0b15c9b4b4
added a few const, and a default value for the generate(int) call
2008-12-18 00:29:03 +00:00
Marco Callieri
7548c5e2ac
corrected a pow argument casting
2008-12-16 09:52:04 +00:00