ganovelli
73ee6a592f
added constructor
2005-09-23 14:18:27 +00:00
Marco Di Benedetto
798bc841c5
FaceRayIntersectFunctor implementation finished, added necessary headers.
2005-09-22 22:43:42 +00:00
Marco Di Benedetto
123fd375a6
Corrected bug in IntersectionBoxRay() and some undeclared variable errors.
2005-09-22 18:57:07 +00:00
Marco Di Benedetto
bcd64129e2
Old versions removed. Now AABBBinaryTree has its own folder.
2005-09-22 13:13:36 +00:00
Marco Di Benedetto
82c6f3e0b8
First Commit.
2005-09-22 13:03:16 +00:00
Nico Pietroni
15405e5e3c
Added DynamicSpatialHAshTable class
2005-09-21 14:22:49 +00:00
Nico Pietroni
329b50d96e
removed closest functions. Closest function is now on index\\Closest.h
...
Users must use trimesh\\closest.h to perform spatial query.
2005-09-21 09:22:51 +00:00
Nico Pietroni
5866d71f45
added maximum radius control on Closest Itarator function:
...
if (radius>=max_dist)
end=true;
in Nextshell( ) function
2005-09-21 09:21:20 +00:00
Nico Pietroni
77d69c2aec
first working version
2005-09-21 09:19:21 +00:00
Nico Pietroni
69b2d6596c
added temporary mark for closest iteartor
2005-09-20 14:02:16 +00:00
Nico Pietroni
68d1cfee4e
Changed Closest Iterators template arguments functor
...
Corrected Bug in Ray Iterators Added Elems.clear() on Init method
2005-09-20 12:32:33 +00:00
Nico Pietroni
54c8562e3a
use of standard grid interface
...
use of vector instead of map inside the cell
removed closest iterator
2005-09-19 13:35:45 +00:00
Nico Pietroni
be78e8d97f
first release version
2005-09-19 13:33:58 +00:00
Paolo Cignoni
1e7094c90d
A lot of attempts in gcc compiling...
2005-09-16 12:03:11 +00:00
Paolo Cignoni
edc816917a
missing gcc typenames
2005-09-16 12:02:22 +00:00
Paolo Cignoni
dc56fe4537
Removed two wrong typenames
2005-09-16 11:57:15 +00:00
Paolo Cignoni
40b2a1f36d
removed wrong typename and added ending \n
2005-09-16 11:56:38 +00:00
Marco Di Benedetto
316f8dba50
Modified interface for search compatibility and facilities.
2005-09-16 10:05:05 +00:00
Marco Di Benedetto
15ce3360ed
Modified interface, added GetKClosest().
2005-09-16 10:04:15 +00:00
Marco Di Benedetto
f8ba5762e2
General interface redefinition, added special functors for faces.
2005-09-16 10:03:46 +00:00
Paolo Cignoni
e6739a6a71
fixed bugs
2005-09-15 13:16:42 +00:00
Nico Pietroni
417bf69fc3
minor changes
2005-09-15 11:15:00 +00:00
Marco Di Benedetto
8d8eed9f02
Added specialized Convert() for the same scalar type.
2005-09-14 14:09:21 +00:00
Paolo Cignoni
05a23b3e5f
minor changes
2005-09-14 13:27:38 +00:00
Nico Pietroni
92665798d1
canged template parameters for Closest Function (use of TempMark class)
2005-09-14 12:57:52 +00:00
Nico Pietroni
caf5812fec
added * operator to Link
...
modified getClosest in order to use Temporary mark
corrected bug on functor calling compilation
2005-09-14 09:05:32 +00:00
Marco Di Benedetto
f170dc4a13
First Commit
2005-09-11 11:46:43 +00:00
Marco Di Benedetto
574063e052
First Commit
2005-09-10 13:22:44 +00:00
Marco Di Benedetto
ff6ba606df
Modified old GetClosest() to respect old min_dist semantic (in/out) and removed #included <limits>
2005-09-09 11:29:21 +00:00
Marco Di Benedetto
f36832fbde
#included <limits> for std::numeric_limits<ScalarType>::max() and corrected parameters bug in old GetClosest();
2005-09-09 11:11:15 +00:00
Marco Di Benedetto
7aa52d9530
Modified GetClosest(): now it uses a functor for distance calculation.
...
Added comments and a GetClosest() method with backward compatibility.
2005-09-09 11:01:02 +00:00
Paolo Cignoni
3259439f67
Added a templated version of SetBBox
2005-08-26 09:27:58 +00:00
Nico Pietroni
66921c752b
exetended form BasicGrid, changed type of t in class Link (from Iterator to Pointer to the object)
2005-08-02 11:18:36 +00:00
Nico Pietroni
7bc4ef59fd
added IPToP and IBoxToBox functions, modified BoxToIBox function in order to use PToIP function
2005-08-02 11:01:05 +00:00
Paolo Cignoni
a96663b39e
First working version
2005-07-28 08:41:00 +00:00
Paolo Cignoni
875b913314
corrected error in GridP (did not compile)
2005-07-28 06:11:12 +00:00
Paolo Cignoni
b537c21b4c
Added a class BasicGrid with some utility function that are scattered among similar classes
2005-07-01 11:33:36 +00:00
Marco Callieri
1b05420d2a
changed intersection names to more specific to avoid ambiguity
2005-06-29 15:28:31 +00:00
Federico Ponchio
fe7fe4380d
Fixed "lerp" function.
2005-06-24 12:21:48 +00:00
Nico Pietroni
1f72e96683
minor changes
2005-06-15 11:44:47 +00:00
Federico Ponchio
60036b0e6e
Minibug: Box2f -> Box2 in the template.
2005-06-14 13:46:20 +00:00
Nico Pietroni
cd855e4e57
resolved hash code conflicts
2005-06-01 13:47:59 +00:00
Paolo Cignoni
6b4cb4a4b5
cambiato parentesi nel costruttore di GetUV per rendere compatibile tale costruttore con MVC e borland
2005-05-06 14:45:33 +00:00
Paolo Cignoni
f9e9301f30
replaced all the occurences of min.v[0] with min.X(), max.v[0] with max.X() etc.
2005-05-06 14:02:37 +00:00
Paolo Cignoni
d775371a3a
Corretto accessi vecchio stile (.v[i] e .x()) nel nuovo stile ([i] e .X() )
2005-05-05 12:22:08 +00:00
Paolo Cignoni
58bc2efa18
changed #include <vcg/space/point3> to #include <vcg/space/point2.h>
...
croccia
2005-05-05 10:20:24 +00:00
Marco Callieri
43f4cfe2b3
line 466, added parentesis on default value creator getUV [borland]
2005-04-27 16:05:19 +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
Federico Ponchio
b3e2bf3ba7
Including math/bash.h
2005-04-13 09:40:30 +00:00
Nico Pietroni
061c49ab5e
corrected 1 bug in distance function (use of templated coords type)
2005-03-23 17:32:01 +00:00
Paolo Cignoni
eda550ba49
minor changes to comply gcc compiler
2005-03-18 16:35:53 +00:00
Paolo Cignoni
e974b9c948
Removed BestDim function from the grid_static_ptr class and moved to a indipendent file (grid_util.h) for sake of generality.
2005-03-15 11:43:18 +00:00
ganovelli
41945cf2d5
added intersection between tow planes (porting from old vcg lib)
2005-03-15 11:22:39 +00:00
ganovelli
95e02ebe5e
there was a debug line, now removed
2005-03-15 09:50:44 +00:00
ganovelli
f86843bdb8
created
2005-03-14 17:04:24 +00:00
ganovelli
2d6e353608
ClosestK added and other minor changes
2005-03-14 15:11:18 +00:00
ganovelli
7610457632
added ClosersIterator and other minor changes. Not compatible with the previous version.
...
Still other modifications to do (temporary commit)
2005-03-11 15:25:29 +00:00
Federico Ponchio
87db18689d
assert addded.
2005-02-22 14:18:15 +00:00
Federico Ponchio
70aad83e78
Added Tight creation.
2005-02-21 17:03:03 +00:00
ganovelli
34679d1176
added vcg header
2005-02-21 12:13:25 +00:00
Paolo Cignoni
0251d89f11
aggiunta intersect ray-box
2005-01-26 10:03:08 +00:00
Federico Ponchio
8da5fad884
Removed dependence from matrix44 and changed VectProd
2005-01-21 18:02:11 +00:00
ganovelli
a991f9b9a4
corrected Point<3
2005-01-12 11:25:52 +00:00
ganovelli
99766e2bd0
added Dimension
2005-01-12 11:25:02 +00:00
ganovelli
5a7921fe9c
correction on point<3
2005-01-12 11:23:46 +00:00
Paolo Cignoni
7a2475edd5
Added some casts
2005-01-03 11:21:26 +00:00
Nico Pietroni
ea41fb5580
first release version
2004-12-16 18:00:51 +00:00
Paolo Cignoni
2730b9857b
double copy also in vcg/math
2004-12-10 01:33:46 +00:00
Federico Ponchio
6a03b9d31c
Distance
2004-12-01 16:06:59 +00:00
ganovelli
6e38d819bb
added GetUV
2004-11-09 15:49:07 +00:00
ganovelli
b21109bdfe
first compiling version (MC,INtel,gcc)
2004-10-20 16:45:21 +00:00
Paolo Cignoni
2d18591782
Better Doxygen documentation
2004-10-13 12:45:51 +00:00
ganovelli
11b41d02f3
added definition of vector product (not implemented)
2004-10-11 17:46:11 +00:00
Federico Ponchio
3532708a3a
Fixed bug in init.
2004-10-09 13:48:02 +00:00
Federico Ponchio
26980b3502
Added Distance shpere - point.
2004-09-29 13:55:33 +00:00
Federico Ponchio
16d1909ad0
SetBox minimal change.
2004-09-28 10:25:05 +00:00
Federico Ponchio
da556417cc
Small bugs fixed.
2004-09-23 14:29:42 +00:00
Federico Ponchio
17623f1cbe
Removed SetSafeBBox. SetBBox is now safe enough.
2004-09-23 13:44:25 +00:00
Paolo Cignoni
08411ea403
Added polar to cartesian
2004-09-10 14:01:40 +00:00
Federico Ponchio
dedf484388
forgotten typename SEGMENTTYPE::...
2004-09-09 14:41:32 +00:00
Paolo Cignoni
c047097ff3
corrected ColorRamp code (template specialization)
2004-09-09 12:51:28 +00:00
Paolo Cignoni
dea8a1e895
included stdio.h
2004-09-09 12:44:39 +00:00
Paolo Cignoni
53c55f2f4f
added a 'template<>' to the specialized constructors from a enum
2004-09-09 08:39:33 +00:00
ganovelli
363a14700e
minor changes for gcc
2004-09-09 08:39:29 +00:00
Paolo Cignoni
294af60c39
Corretto errore sintattico nelle specializzazioni parziali (float e char) di due costruttori di Color4
2004-09-03 13:58:48 +00:00
Nico Pietroni
cf20e1d0c1
minor changes to comply gcc compiler (typename's )
2004-09-01 12:22:04 +00:00
Nico Pietroni
d18f2f9f39
correcter .dir to .Direction and .ori in .Origin()
2004-08-09 09:48:43 +00:00
Nico Pietroni
f610bf209c
added rey triangle intersections funtions
2004-08-04 20:55:02 +00:00
Nico Pietroni
f458b067e7
first release
2004-08-04 20:53:54 +00:00
Paolo Cignoni
6b6ffccf46
Uncommented Add of matrix transformed bbox
2004-07-20 23:10:01 +00:00
Paolo Cignoni
b53fe209a1
Added the standard P() access function instead of the shortcut P0()
2004-07-15 13:22:37 +00:00
ganovelli
db900ae484
added inclusion of point3.h
2004-07-15 11:01:43 +00:00
Nico Pietroni
f7bd6ddb20
correct access to point funtions call in usage of triangle3 (ex. t.P(0) in t.P0(0))
2004-07-15 10:17:42 +00:00
ganovelli
aa4cdc3701
added function P(int i) to list the box's vertices
2004-07-15 09:47:55 +00:00
Paolo Cignoni
2376184409
removed uppercase references in include
2004-07-13 06:48:30 +00:00
Paolo Cignoni
dd9ebaba8e
Initial Commit
2004-07-12 23:46:03 +00:00
Paolo Cignoni
398a5a60cc
Added a cast to remove a warning
2004-07-11 22:08:04 +00:00
ganovelli
936850026b
ComputeVOlume moved outside the class and other
...
minor corrections
2004-07-09 10:08:21 +00:00
Paolo Cignoni
d8649c92be
removed the infamous Inflate. Now only Offset exists
2004-07-07 23:26:25 +00:00
ganovelli
260665c528
added Grid to return all the cells sharing a specified edge
2004-06-25 18:34:23 +00:00
ganovelli
39028e633e
minor changes
2004-06-25 18:17:03 +00:00
Paolo Cignoni
71dbb53a60
Now color ramp can do reverse color ramp
2004-06-24 07:55:50 +00:00
Federico Ponchio
956a626273
Added some help and inndentation
2004-06-23 15:49:03 +00:00
Paolo Cignoni
1ca59ac830
Corrected bug in setgrayshade
2004-05-26 15:10:29 +00:00
Federico Ponchio
99b51766f6
Fixed some minor bugs
2004-05-14 03:14:29 +00:00
Federico Ponchio
62bba63f19
Added Distance
2004-05-14 03:14:04 +00:00
Federico Ponchio
ee86220f5c
minor bug
2004-05-13 23:43:54 +00:00
Federico Ponchio
65c81124dd
SegmentType -> Segment3 in constructor (g++ complained)
2004-05-13 23:39:47 +00:00
Paolo Cignoni
dc9456a1cc
Changed SolidAngle : table EV in table EofV
...
Changed DiedralAngle : tables FE and FV in tables FofE and FofV
2004-05-13 12:51:00 +00:00
Nico Pietroni
42f85b22f1
the relation between entities functions are in tetra class (don't neeed template argoument)
2004-05-13 08:42:36 +00:00
ganovelli
2739634d38
changed calls to Dist
2004-05-12 18:50:58 +00:00
ganovelli
cfbe1314df
changed to grid_static_obj to grid_static_ptr
2004-05-11 14:33:46 +00:00
ganovelli
51d36a0451
created
2004-05-10 14:57:23 +00:00
ganovelli
d7d6388dbf
created
2004-05-10 14:45:46 +00:00
Paolo Cignoni
b4d5b219eb
missing ending newline
2004-05-10 13:26:53 +00:00
Paolo Cignoni
6a75af2188
small syntax error Math -> math in Angle
2004-05-10 13:22:25 +00:00
Paolo Cignoni
b7fb0325c3
missing ending newline
2004-05-10 13:15:54 +00:00
ganovelli
2c75393c45
include assert.h added
2004-05-10 11:16:19 +00:00
ganovelli
9afae94da0
name of the constructor changed from LineType to Line3
2004-05-10 10:58:35 +00:00
ganovelli
c69a02d71d
return type of length and squaredlength corrected
2004-05-08 14:07:50 +00:00
Paolo Cignoni
ff99671468
added ifdef for gcc [Bug c++/14479]
2004-05-07 12:46:55 +00:00
Paolo Cignoni
16f2e7ebd7
Corrected template specialization syntax for gcc compiling
2004-05-07 10:06:55 +00:00
Paolo Cignoni
ff948edd54
syntax errors in inersection plane line.
2004-05-05 08:21:55 +00:00
Paolo Cignoni
e263653851
syntax error in set and better comment
2004-05-05 08:20:47 +00:00
ganovelli
bd4dad797c
Triangle3<T> replaced by TRIANGLE
...
Segment<T> replaced by EDGETYPE
2004-05-04 02:37:58 +00:00
ganovelli
6524344684
error in plane segment corrected
2004-04-29 10:48:44 +00:00
ganovelli
7263ed4589
some siyntax error corrected
2004-04-29 10:47:06 +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
a92bdebe76
Changed :
...
in SolidAngle(vind) :
double da0=DiedralAngle(EV(vind,0));
double da1=DiedralAngle(EV(vind,1));
double da2=DiedralAngle(EV(vind,2));
in
double da0=DiedralAngle(EofV(vind,0));
double da1=DiedralAngle(EofV(vind,1));
double da2=DiedralAngle(EofV(vind,2));
Changed :
in DiedralAngle(edgeind) :
int f1=FE(edgeind,0);
int f2=FE(edgeind,1);
in
int f1=FofE(edgeind,0);
int f2=FofE(edgeind,1);
Changed :
in DiedralAngle(edgeind) :
Point3d p0=FV(f1,0)->P();
Point3d p1=FV(f1,1)->P();
Point3d p2=FV(f1,2)->P();
in
Point3d p0=_v[FofV(f1,0)];
Point3d p1=_v[FofV(f1,1)];
Point3d p2=_v[FofV(f1,2)];
Changed :
in DiedralAngle(edgeind) :
p0=FV(f2,0)->P();
p1=FV(f2,1)->P();
p2=FV(f2,2)->P();
in
p0=_v[FofV(f2,0)];
p1=_v[FofV(f2,1)];
p2=_v[FofV(f2,2)];
2004-04-28 16:31:17 +00:00
Nico Pietroni
f154f17acd
*** empty log message ***
2004-04-28 11:37:15 +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
ganovelli
cbbb1cd0ff
plane line
...
plane segment
triangle triangle added
2004-04-26 12:34:50 +00:00
ganovelli
faf56a6219
first version
2004-04-26 12:33:59 +00:00
ganovelli
00de9443f0
it changed name to tetra3
2004-04-22 13:20:22 +00:00
ganovelli
c115b3c688
first version
2004-04-22 13:19:12 +00:00
Paolo Cignoni
f1ea75bbe8
Initial Commit
2004-04-21 14:22:27 +00:00
Nico Pietroni
cd9f4d323c
*** empty log message ***
2004-04-20 16:26:48 +00:00
Nico Pietroni
c30060577e
*** empty log message ***
2004-04-15 08:54:20 +00:00
mtarini
98433b6bfc
unified version: PointBase version, with no guards "(N==3)"
2004-04-05 12:36:43 +00:00
mtarini
c73064b1fa
unified version: PointBase version, with no guards "(N==3)"
2004-04-05 12:35:33 +00:00
Paolo Cignoni
c5502d119f
Add V() access function
2004-04-05 11:57:32 +00:00
Federico Ponchio
4f266201df
Ehm... a couople of small errors.
2004-04-02 09:49:01 +00:00
Federico Ponchio
b7a9093265
Sphere ->Sphere3
2004-04-02 09:44:13 +00:00
Federico Ponchio
18ea5dd5db
Untested first draft.
2004-03-31 22:19:24 +00:00
Paolo Cignoni
9b763a1643
missing return value in zero()
2004-03-31 10:09:58 +00:00
Federico Ponchio
760a82a416
#include sbagliato.
2004-03-25 17:25:46 +00:00
Federico Ponchio
5a69f4fe30
First version.
2004-03-21 17:51:57 +00:00
Federico Ponchio
7638edc6e1
Added a math::
2004-03-21 17:14:56 +00:00
mtarini
6e7e008ed3
first commit
2004-03-16 03:08:02 +00:00
mtarini
223902e61c
"dimensionally unified" version: first commit
2004-03-16 03:07:38 +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
mtarini
f36d1e007a
minor updates, corrections, added documentations, etc.
2004-03-11 11:47:20 +00:00
Paolo Cignoni
70d23b8bdb
Written some documentation and added to the space module
2004-03-11 08:54:12 +00:00
Paolo Cignoni
c735627fae
Written some documentation and added to the space module
2004-03-10 21:38:40 +00:00
mtarini
b84e4c7460
Added comments (Dox) !
...
Added Import(). Costruct(), ScalarType... Corrected cross prod (sign). Added Angle. Now using Math:: stuff for trigon. etc.
2004-03-10 17:42:40 +00:00
mtarini
017afe95d0
added Normalized flag
2004-03-10 15:27:48 +00:00
mtarini
9215ea92e7
first version
2004-03-10 15:27:18 +00:00
Paolo Cignoni
b68d85894d
added a math namespace reference
2004-03-10 00:35:24 +00:00
Paolo Cignoni
9ec5d86675
Removed a wrong (?) copy constructor
2004-03-10 00:35:01 +00:00
mtarini
86e23fb5d4
smaller update
2004-03-09 19:29:52 +00:00
mtarini
5f11437fd1
Added "Normalize" flag
2004-03-09 16:47:32 +00:00
mtarini
43f74f4627
First Version (tarini)
2004-03-08 19:46:47 +00:00
mtarini
f179d1caa6
first version (tarini)
2004-03-08 16:15:48 +00:00
Paolo Cignoni
b91d8334d5
Initial commit
2004-03-08 09:24:59 +00:00
Paolo Cignoni
9150fdfb37
Initial commit
2004-03-08 01:13:31 +00:00
Paolo Cignoni
12d0d04898
Moved quality and normal functions to the triangle class.
2004-03-07 22:45:32 +00:00
mtarini
1a8c8a6199
errorino: upper case in Zero()
2004-03-05 17:55:01 +00:00
mtarini
dc05252eec
Errorino "ScalarType" -> "BoxScalarType"
2004-03-05 17:51:28 +00:00
Paolo Cignoni
cd85d6ca7d
renamed protected member v -> _v
2004-03-03 15:07:40 +00:00
Paolo Cignoni
e6a05ea921
Yet another cr lf mismatch
2004-03-03 14:32:13 +00:00
Paolo Cignoni
86786bc121
Yet against cr lf mismatch
2004-03-03 14:22:48 +00:00
Paolo Cignoni
547edd7427
cr lf mismatch
2004-02-23 23:44:21 +00:00
Paolo Cignoni
adb4bd3f1b
Translated comments, removed unusued stuff. corrected linefeed/cr
2004-02-23 23:42:26 +00:00
Paolo Cignoni
ba0ae377c2
cr lf mismatch 2
2004-02-19 16:12:28 +00:00
Paolo Cignoni
e5dbdbe05c
cr lf mismatch
2004-02-19 16:06:24 +00:00
Paolo Cignoni
04fe64ca77
Added doxygen groups
2004-02-19 15:40:56 +00:00
Federico Ponchio
a952f745a0
Sqrt -> Math<...>::Sqrt
2004-02-19 15:27:40 +00:00
Paolo Cignoni
cf744db2db
corrected sqrt and added doxygen groups
2004-02-19 15:13:40 +00:00
Paolo Cignoni
df4546eb32
Di prova...
2004-02-17 02:08:47 +00:00
Paolo Cignoni
456da92c39
Cambiato nome type template in accordo alla styleguide
2004-02-15 23:35:47 +00:00
Paolo Cignoni
a5aa7d19f2
Initial commit
2004-02-15 23:34:04 +00:00
Paolo Cignoni
baeb123312
First working release.
2004-02-13 02:16:22 +00:00
Paolo Cignoni
b2481bc732
First commit...
2004-02-13 00:44:53 +00:00
Paolo Cignoni
c6f15ed3ad
Edited Comments and GPL license
2004-02-10 01:11:28 +00:00
Paolo Cignoni
c6ba9e39cc
Edited doxygen comments
2004-02-09 13:48:02 +00:00
Paolo Cignoni
3d0bea8089
First working release.
2004-02-06 02:25:54 +00:00
Paolo Cignoni
23653c6752
First commit...
2004-02-06 02:17:09 +00:00
Paolo Cignoni
1e79ceef6f
First commit...
2004-02-05 16:08:27 +00:00