mtarini
8fed8aeed3
removed old "tcoord2". New name is "texcoord2"
2007-03-12 15:28:13 +00:00
mtarini
23a0cb0be4
New name (TCoord -> TexCoord). First commit after name change.
2007-03-12 15:26:56 +00:00
Nico Pietroni
00cc5e3f15
line 375, corrected 1 error concerning intersection with bounding of the grid
2007-03-08 17:05:50 +00:00
Marco Di Benedetto
50ed5305a4
Added const qualifier to bbox parameter in Intersection_Triangle_Box().
2007-02-21 02:40:52 +00:00
ganovelli
116707257a
modif in ClosestIterator to include the last shell Si.siz [X|Y|X]. Tested with minialign and point based animation
2007-02-20 16:22:50 +00:00
Paolo Cignoni
c4b0073433
Initial commit. Only the Set and GetInSphere methods of the SpatialIndex interface are implemented.
2007-02-18 22:43:10 +00:00
mtarini
c842c83b77
renamed all methods (now uppercase). Also, the Position of a TCoord is now "P()". Old methods name are left, just for now, for back-compatibility. They will be removed soon.
2007-01-30 19:04:50 +00:00
Nico Pietroni
385ee8ba62
- 1 warning corrected in InterpolationParameters function
2007-01-29 00:21:46 +00:00
Nico Pietroni
aacbec3178
first working version
2007-01-25 01:11:10 +00:00
Nico Pietroni
9ec0e7b571
added:
...
- RayLineIntersection
- RaySegmentIntersection
- SegmentSegmentIntersection
2007-01-25 01:04:54 +00:00
Paolo Cignoni
97ae6e35ed
Corrected a syntax error in stabledot
2007-01-18 01:27:44 +00:00
Paolo Cignoni
9ba5050193
Added (Normalized) Normal version templated on three points (instead forcing the creation of a new triangle)
2007-01-13 00:25:23 +00:00
Nico Pietroni
191896afbb
added constructors :
...
-Triangle2()
-Triangle2(const CoordType &p0,const CoordType &p1,const CoordType &p2)
added functions:
- InterpolationParameters
- PointDistance
2007-01-08 09:29:58 +00:00
Nico Pietroni
9cbf2c1c3c
- added easpilon test on convex function.
...
- renamed Intersection function with IsInsideTrianglePoint and optimized using bouding boxes
2007-01-08 09:26:33 +00:00
Nico Pietroni
a2ee98e3e4
first release version
2007-01-03 15:49:48 +00:00
Nico Pietroni
56086c51ae
added line-line and line-segment intersection
2007-01-03 15:49:00 +00:00
ganovelli
8403681640
using of locally defined variable removed
2006-12-20 15:23:52 +00:00
Paolo Cignoni
fb51d1f3f9
end() replaced by pointer lastPlusOne
2006-12-06 17:47:50 +00:00
Nico Pietroni
f2706529cf
changed 1 wrong comment RayIterator---- Refresh .. was the opposite
2006-12-06 12:53:14 +00:00
Massimiliano Corsini
952d3e61ca
fix all errors and warnings gyven by gcc compiler
2006-11-16 14:48:48 +00:00
Massimiliano Corsini
900a46600e
fix polar coordinates
2006-11-15 15:34:39 +00:00
Federico Ponchio
716d0b39f2
Added GetBBox in Point3 (declaration) the body of the function is in box3.h
2006-11-13 13:03:45 +00:00
Paolo Cignoni
642158fc32
many gcc compiling issues
2006-11-07 17:22:53 +00:00
Paolo Cignoni
e2733d55df
Necessary changes for compilation with gcc 3.4.6. Especially the hash function is a problem
2006-11-07 15:13:57 +00:00
Nico Pietroni
478e2ad4cd
corrected 1 bug in operator ++ of closest iterator
2006-10-26 08:28:50 +00:00
Nico Pietroni
ad5a634220
added intersection control between bounding boxes for intersection between segment and triangle function
2006-10-25 16:04:32 +00:00
Nico Pietroni
a8b6014a73
corrected bug in closest iterator.. if doesn't find any alement at first cells examinated continue until find some element
2006-10-25 15:59:29 +00:00
Paolo Cignoni
fe32dbea36
just few rearrangements...
2006-10-25 12:46:07 +00:00
Nico Pietroni
5799203aaf
added max dist control and constructor
2006-10-25 09:47:53 +00:00
Paolo Cignoni
4b4dd13689
Minor bug fixed
2006-10-19 13:32:23 +00:00
Paolo Cignoni
9031924a14
Added some templatedoctree to compile under 2003
2006-10-18 15:11:26 +00:00
Federico Ponchio
6eb4a5b293
Working on mingw now.
2006-10-18 08:32:03 +00:00
Paolo Cignoni
17979a3b54
In function Barycenter, replaced calls to (the inexistent) cP(i) with P(i)
2006-10-17 06:51:33 +00:00
Paolo Cignoni
5e4f12f28a
minor changes to comply gcc compiler
2006-10-16 16:10:22 +00:00
Paolo Cignoni
00a0aeb381
Added **explicit** constructor from three coords of a different scalartype
2006-10-13 12:59:24 +00:00
Paolo Cignoni
7e30be53fa
added callback...
2006-10-13 10:38:09 +00:00
Paolo Cignoni
8d056ebdd4
fixed some bugs
2006-10-12 14:15:13 +00:00
Paolo Cignoni
51efef83bf
Conformed with the base interface
2006-10-12 11:02:57 +00:00
Paolo Cignoni
5b4f40661d
Minor changes to work with the base-compliant octree
2006-10-12 11:02:37 +00:00
Paolo Cignoni
b44fce7de9
added quality for triangle wrap
2006-10-10 09:33:47 +00:00
Marco Di Benedetto
0c31822d3c
Implemented Scale() method (was only declared).
2006-10-07 16:51:43 +00:00
Marco Di Benedetto
6a2b32f3e4
Added Dim() method.
2006-10-07 16:50:26 +00:00
Paolo Cignoni
60d1fa3ccd
Re-added diff 1.12 by Pietroni (cancelled by previous rollback):
...
in GridDoRay function the RayIterator must be initialized with maximum distance
2006-10-02 09:34:03 +00:00
Paolo Cignoni
9f8cbf3f08
Reverted to version 1.10 to nullify dangerous marfr960's changes
2006-10-02 09:28:45 +00:00
ganovelli
8f509dd74d
reverted to version 1.20 for critical bug
2006-10-02 09:25:49 +00:00
Paolo Cignoni
59d7770ebb
Reverted to version 1.14 to nullify dangerous marfr960's changes
2006-10-02 07:47:57 +00:00
Paolo Cignoni
9cf176a0ff
Added methods GetClosest, GetInSphere and GetInBox.
...
Changed signature of Set method to comply with the SpatialIndex interface
2006-09-28 22:49:15 +00:00
Marco Di Benedetto
f2143e6efb
added non const * V()
2006-09-28 13:37:35 +00:00
Marco Di Benedetto
532040d1bd
Added "const" to Collide()
2006-09-28 13:37:13 +00:00
Paolo Cignoni
7a82eb0b6e
fix some bugs
2006-09-28 09:55:28 +00:00
Paolo Cignoni
8ecd4dc8f2
bug fix, add return type to Init
2006-09-27 08:49:32 +00:00
Paolo Cignoni
ac4efc84ef
initial commit
2006-09-21 18:10:05 +00:00
Paolo Cignoni
b6bca3a60b
initial commit
2006-09-19 16:28:41 +00:00
Federico Ponchio
ac98066038
numeric_limits::(max)() -> numeric_limits::max()
2006-09-18 14:21:59 +00:00
ganovelli
bb8cf89b85
added inclusion of sphere3
2006-09-14 08:46:00 +00:00
ganovelli
3f091b3013
changed t.P(*) in t.cP() nella funzione Barycenter
2006-09-14 08:44:07 +00:00
ganovelli
cba93abba3
Intersection_sphere_sphere added
2006-09-14 08:39:07 +00:00
Paolo Cignoni
cf6421124f
casted returned value type to avoid warning C4267
2006-09-07 09:25:49 +00:00
Paolo Cignoni
be5317d84c
corrected bounds check in the cell scan in _IsInHTable
2006-08-31 13:26:17 +00:00
Paolo Cignoni
7fb7f4b401
ClosestIterator avoids to put the query point p into the result set
2006-08-31 13:19:59 +00:00
Nico Pietroni
1b117b6aba
in GridDoRay function the RayIterator must be initialized with maximum distance
2006-08-29 15:38:36 +00:00
Massimiliano Corsini
57bcda4fd6
Fix invalid returning values
2006-08-29 12:57:14 +00:00
Massimiliano Corsini
a4dec0385d
Fix some bugs in color calculations
...
Add gamma correction
2006-08-24 16:51:06 +00:00
Paolo Cignoni
30c32f2445
added comments
...
corrected bad reference in void Grid( const Point3i & _c, CellIterator & first, CellIterator & last )
2006-08-23 15:23:05 +00:00
Paolo Cignoni
f942fd8a4f
*** empty log message ***
2006-08-23 15:22:14 +00:00
Paolo Cignoni
ca680b6a32
added some comments
2006-08-23 15:21:35 +00:00
Paolo Cignoni
fe330a06f7
corrected minor bugs
2006-08-23 15:20:14 +00:00
Paolo Cignoni
ac9e757551
corrected bugs in ClosestIterator class : last element of Elems now is accessed with Elems.back()
...
corrected bug in ClosestIterator::Refresh() : when grid is called, *last have to be considered
corrected bug in ClosestIterator::End() : only coordinates strictly bigger than siz must be discarded
added several comments
2006-08-23 14:53:50 +00:00
Massimiliano Corsini
12e2b13e02
first working version
2006-08-02 13:51:53 +00:00
Nico Pietroni
b2c789ae43
added InitEmpty Function
2006-07-26 08:12:56 +00:00
Paolo Cignoni
9aa38646ff
static keyword only in declaration not in implementation
2006-07-12 12:13:23 +00:00
Paolo Cignoni
a84cf9c8dd
explicit cast in _IsInHtable() to resolve a warning
2006-07-10 12:43:13 +00:00
Paolo Cignoni
12e55110da
minor changes in SphereOfTetra()
2006-07-10 10:38:16 +00:00
ganovelli
d263bf8d27
tolto il tipo enumerato axis
2006-07-06 12:42:10 +00:00
ganovelli
5630a1e252
typdef ..ScalarType added
2006-07-06 12:40:34 +00:00
ganovelli
d4f068e4e0
adde barycenter()
2006-07-06 12:39:51 +00:00
ganovelli
69ddd70cf4
draft version. For the triangle is not tehe smallest enclosing sphere and for the set of spheres works only for two spheres
2006-07-06 12:37:18 +00:00
ganovelli
94af0e518b
Aggiunte funzioni che determinano il lato magiore (minore)
2006-06-29 13:22:04 +00:00
ganovelli
d839bc9238
forgot &
2006-06-21 11:07:25 +00:00
ganovelli
f533b8abeb
changed return type of Zero() (to void)
2006-06-21 11:06:16 +00:00
Marco Di Benedetto
78f25ae2a1
Added const qualifier to P() method.
2006-06-09 07:26:37 +00:00
Paolo Cignoni
5f2db06c23
gcc 4 needs the extra template keyword
2006-06-08 08:52:02 +00:00
Paolo Cignoni
8bfbf1111d
Changes for compilation on linux AMD64. Some remarks: Linux filenames are case-sensitive. _fileno and _filelength do not exist on linux
2006-06-06 14:35:32 +00:00
Paolo Cignoni
517c74f506
added missing header
2006-06-01 20:53:56 +00:00
Nico Pietroni
26b64e4246
fixed bug in Ray Iterator .. function Init
2006-06-01 08:41:26 +00:00
Nico Pietroni
3e649c465e
added PointDistance function
2006-06-01 08:38:58 +00:00
Nico Pietroni
f949a83faf
Added functions:
...
- Intersection_Segment_Triangle
- Intersection_Plane_Box
- Intersection_Triangle_Box
2006-06-01 08:38:02 +00:00
Nico Pietroni
f9d3653ae5
corrected bug in GridGetInBox function
2006-05-17 12:48:52 +00:00
Paolo Cignoni
c5f4a75533
small GCC compiling issues
2006-04-20 08:30:27 +00:00
Paolo Cignoni
1f4a4221e3
changes necessary for gcc 3.4.5 on linux 64bit.
2006-04-11 08:10:05 +00:00
Paolo Cignoni
a1d3e8a371
Missing ';' (thx Maarten)
2006-03-29 07:53:36 +00:00
Nico Pietroni
b2879b7333
IntersectionSegmentPlane and Intersection_Segment_Box functions Added
2006-03-20 14:42:49 +00:00
Nico Pietroni
0c0e9044cf
compiled and corrected ClosestPoint function
2006-03-07 16:39:38 +00:00
Nico Pietroni
5dee0e155b
added InterpolationParameters function
2006-03-01 15:59:34 +00:00
Nico Pietroni
dc14636c2c
compiled InterspolationParameters function
2006-03-01 15:35:09 +00:00
Nico Pietroni
165db89ccf
added typenames declaration in rayIterator
2006-02-08 17:04:10 +00:00
Massimiliano Corsini
3b049ec0e4
fix signed/unsigned mismatch
2006-01-27 09:58:47 +00:00
Federico Ponchio
88614c2f37
gcc compatibility (templates mostly)
...
bbox -> this->bbox
More consistent use of Box3x and such.
2006-01-23 21:26:57 +00:00
Federico Ponchio
52c3f0e4d4
P1 --> HASH_P1
...
Old definition was conflicting with functions in segment.h
2006-01-23 15:26:31 +00:00
Federico Ponchio
efbad3a4fd
Uncommented #include <..../intersection3.h>
...
for Intersection_Ray_Box...
2006-01-23 11:41:03 +00:00