Commit Graph

700 Commits

Author SHA1 Message Date
ganovelli 5249736918 completed renaming to lowercase of space/index/index2d and hashing_test2d 2014-10-09 12:32:03 +00:00
ganovelli 1b833f40a9 renaming to lower case (continued) 2014-10-09 12:25:30 +00:00
ganovelli 0c7c9db51a renaming to lowercase 2014-10-09 12:23:46 +00:00
ganovelli d78ad96d9a files renaming to lowercase 2014-10-09 12:22:31 +00:00
Luigi Malomo 81bdd19245 temp fix of include directive. file naming should be fixed for coherency. 2014-09-29 16:52:05 +00:00
Luigi Malomo a78ac53814 added edge mesh support to OBJ importer
corrected a type to avoid clang compiler issues
2014-09-06 11:06:23 +00:00
Nico Pietroni feff81dd01 solved minor error with templated scalar type 2014-08-28 09:46:49 +00:00
granzuglia f2efb48a3c rect_packer.h:
- removed Visual Studio warnings
2014-08-09 10:10:03 +00:00
Paolo Cignoni 35d099384f added a MaxCoeffId utility function that was missing... 2014-08-09 00:01:41 +00:00
Nico Pietroni ad69d7d893 chenged GridDoRay to GridDoRay2D.. corrected one bug in the initial #define 2014-08-08 21:32:50 +00:00
Nico Pietroni b06ff095a1 corrected some minor warning 2014-08-01 00:25:26 +00:00
Nico Pietroni 48bca62885 corrected some minor warning 2014-08-01 00:24:55 +00:00
Nico Pietroni 2134c8f064 corrected some minor warning 2014-08-01 00:24:21 +00:00
Nico Pietroni 3dfce75a37 2014-08-01 00:18:43 +00:00
Nico Pietroni 3c6625d060 added DoRay and Closest Point queries 2014-08-01 00:17:06 +00:00
Nico Pietroni 8909e9205a removed one commented line 2014-08-01 00:16:23 +00:00
Nico Pietroni 2c2b5b1319 added constructor with center and radius 2014-08-01 00:15:51 +00:00
Nico Pietroni 433d070691 added RayBoxIntersection function and RaySegmentIntersectionFunctor 2014-08-01 00:15:14 +00:00
Nico Pietroni 565308c80d corrected one bug in closest point 2014-08-01 00:14:25 +00:00
Nico Pietroni cd83a42ea6 added PointSegment2DEPFunctor 2014-08-01 00:13:25 +00:00
Nico Pietroni 6902670e48 indented and remove include of triangle3 2014-08-01 00:12:49 +00:00
Luigi Malomo 2e5ac741a8 added closest face function which returns also barycentric coordinates and the interpolated normal for the closest point.
fixed Inside class for checking if a point is inside a mesh
minor fixes
2014-07-26 14:44:59 +00:00
Paolo Cignoni c2f98a8595 Added missing standard vcg header comment 2014-07-12 05:49:07 +00:00
Paolo Cignoni d520fe2f0e Corrected small clang typename issues 2014-07-11 13:00:44 +00:00
Gianpaolo Palma 31fb567321 Thread-safe refactoring of the class KdTree.
Removed methods:
void setMaxNofNeighbors(unsigned int k);
inline int getNofFoundNeighbors(void);
inline const VectorType& getNeighbor(int i);
inline unsigned int getNeighborId(int i);
inline float getNeighborSquaredDistance(int i);

Added methods:
void doQueryDist(const VectorType& queryPoint, float dist, std::vector<unsigned int>& points, std::vector<Scalar>& sqrareDists);
void doQueryClosest(const VectorType& queryPoint, unsigned int& index, Scalar& dist);

Changed methods:
void doQueryK(const VectorType& queryPoint,  int k, PriorityQueue& mNeighborQueue);
2014-07-11 11:52:52 +00:00
Gianpaolo Palma 0491ceedeb Added method "sort(bool)" to sort the element of the queue in ascending or descending order 2014-07-11 11:35:15 +00:00
Paolo Cignoni a743e93a70 Reasonable but harmless clang warning cleanup 2014-07-03 21:28:40 +00:00
Paolo Cignoni 5e910a0058 Improved float/double consistency removing some wrong Point3f and substitued with MeshType::CoordType 2014-07-01 10:08:30 +00:00
Paolo Cignoni cf856d0a6b Reasonable but harmless clang warning cleanup 2014-07-01 10:08:00 +00:00
Paolo Cignoni f576d96d39 Templated the IPiToPf and IPfToPf function to allow volumes with scalar type different from the one of the meshes 2014-06-24 08:47:34 +00:00
Paolo Cignoni 01ab3c4e68 Templated the Lerp color operator to allow use with double... 2014-06-24 08:46:49 +00:00
Gianpaolo Palma f97ccfbf56 Added destructor to HeapMaxPriorityQueue 2014-06-20 13:55:19 +00:00
Paolo Cignoni f5778fd180 Improved float/double consistency removing some wrong Point3f and substitued with MeshType::CoordType 2014-06-20 07:04:42 +00:00
Luigi Malomo 6ac9919471 added static member Zero() to point3 2014-05-28 22:44:08 +00:00
Paolo Cignoni 03206b6bc4 Added a VectorConstDataWrapper to simply create a kdtree from a vector of point3f 2014-04-17 09:50:21 +00:00
Paolo Cignoni c085b7d6ba Added a IPtoPfMatrix method to the grid class Returns the matrix that applied to a point in grid space transforms it in the original space. 2014-04-17 08:17:08 +00:00
Paolo Cignoni bf1e2977d0 Corrected a wrong usage of IntersectionSegmentTriangle (could not compile...) 2014-04-07 14:48:16 +00:00
Nico Pietroni b87832a022 added PlanePointSquaredDistance function 2014-04-07 06:30:30 +00:00
Nico Pietroni b400ca4b75 added Mirror function 2014-04-07 06:29:32 +00:00
Paolo Cignoni 6f7e2872af Removed useless include 2014-02-18 20:18:13 +00:00
Paolo Cignoni bbae89aa94 Many small changes to remove useless annoying warnings. 2014-02-13 16:29:51 +00:00
Paolo Cignoni e829dff8af added a const to a parameter passed by reference. 2014-02-13 16:29:21 +00:00
Paolo Cignoni 6efdd91ecc Many small changes to remove useless annoying warnings. 2014-02-13 15:52:17 +00:00
Federico Ponchio 57880ef231 Replaced Eigen::Vector3f p; with Eigen::Matrix<S,3,1> p; (support for double precision). 2014-02-12 15:07:19 +00:00
Massimiliano Corsini 171510a59b fix name of hash functor to avoid conflict with the 3D spatial hash 2014-02-11 13:48:52 +00:00
Gianpaolo Palma eeaabe684c Compiling errors fixed in the function ClosestPoint2Box2 2013-11-28 16:34:20 +00:00
granzuglia fa8a11fd32 - added missing include 2013-11-28 12:55:58 +00:00
Paolo Cignoni fba7d7873e removed spurious printf 2013-11-25 10:31:01 +00:00
Paolo Cignoni 3bdf666e86 Changed the interface of the interpolating function of a segment (2D and 3D) from the ambiguous P(float) to Lerp(float). Note that with the previous interface it could happen that seg.P(1) != seg.P0() just becouse seg.P(1) was the result of a lerp. 2013-11-06 16:06:57 +00:00
Luigi Malomo dd7e419215 corrected visibility classification for leaf BVs in frustum culling. 2013-09-26 17:26:47 +00:00