Commit Graph

3447 Commits

Author SHA1 Message Date
Paolo Cignoni b328a5f94a Added the new mechanism for run time checking of mesh adequacy to a given algorithm.
While the many RequireXXX functions allow to check the static correctness of a mesh and
have a O(1) complexity, in many cases we need to run more complex checks to be sure that
the subsequent algorithm can run without issues.
Typical cases are the fact that there are no unreferenced vertices (NoUnreferencedVertex)
or a given adjacency is correctly initialized (and not only statically present as a type component).
2014-11-03 14:50:37 +00:00
Paolo Cignoni df6865a6de Changed many explicit exception throwing for missing components into the shorthand RequireXXXX 2014-11-03 14:38:05 +00:00
Paolo Cignoni 5565647e82 Added two functions VertexFromAttributeHandle and FaceFromAttributeHandle to map a pervertex/perface scalar handle into the quality 2014-11-03 14:36:58 +00:00
Paolo Cignoni b278f29129 Changed many explicit exception throwing for missing components into the shorthand RequireXXXX 2014-11-03 14:34:35 +00:00
Paolo Cignoni 6830b4aea4 Changed many explicit exception throwing for missing components into the shorthand RequireXXXX 2014-11-03 14:33:45 +00:00
Luigi Malomo 79f4c6ac94 Added VN() function to triangle3. 2014-11-01 16:58:53 +00:00
giorgiomarcias af0f42fedf "public"-ized some previously "private" static method which are useful also outside. Added a "PC_OTHER" result code for user-defined purposes. 2014-10-17 08:54:34 +00:00
giorgiomarcias bc1975ad43 Added "const" keyword to IsEmpty(). 2014-10-16 09:42:48 +00:00
Massimiliano Corsini 708463311e fix GetBBOx changes 2014-10-13 08:36:01 +00:00
Massimiliano Corsini 0fd22c536b fix include path 2014-10-13 08:35:29 +00:00
ganovelli 918cec664a fixed includes to new files position (also in app2/sample/hashing_2D) 2014-10-09 14:10:27 +00:00
ganovelli 578f4ae72e changed names to avoid troubles with OS oblivious to letter case 2014-10-09 14:04:09 +00:00
ganovelli d5d50503c7 changed the filnenames to avoid possible trouble with OS oblivious to letter case 2014-10-09 14:02:56 +00:00
ganovelli 46031c54ca added GetClosestEdgeBase from space/index/index2/closest_2d.h which is going to be removed 2014-10-09 12:53:40 +00:00
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
granzuglia 9f647f2460 - added missing cast causing compiler error 2014-09-25 17:11:45 +00:00
Paolo Cignoni 03fb236a82 Improved EdgeMeshUniform to sample also closed loops of edges correctly 2014-09-19 17:07:02 +00:00
Luigi Malomo 70154e50bb face border computation from FF adjacency fixed for polygon meshes 2014-09-19 10:57:05 +00:00
granzuglia 42e1ae0cfb - fixed a compatibility problem with MeshLab single precision version 2014-09-17 14:13:45 +00:00
Nico Pietroni e9ba519fa4 small change to do not insert and cycle to find polygons of size 0 2014-09-14 01:02:42 +00:00
Nico Pietroni c3beef6091 added NextNotFaux function 2014-09-11 20:43:41 +00:00
Nico Pietroni 0a91defac8 templated the function VertexClamp wrt input scalar type 2014-09-11 20:42:30 +00:00
Luigi Malomo e5ca4bf8c7 added option to copy adjacency for mesh copy function 2014-09-10 00:50:10 +00:00
Paolo Cignoni 053b649ed2 Added perturbation to the voronoi seed relaxing 2014-09-07 21:36:30 +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
Paolo Cignoni d8293c0c05 Updated RestrictedVoronoiRelaxing to use area weighted sum of nearest vertexes to compute barycenter 2014-08-30 07:50:22 +00:00
Nico Pietroni 6d042e5200 added FaceFauxBorder function 2014-08-29 15:10:06 +00:00
Paolo Cignoni 0e15b05070 Added more control on the initialization of the random generator in the poisson sampling 2014-08-29 13:21:27 +00:00
Nico Pietroni feff81dd01 solved minor error with templated scalar type 2014-08-28 09:46:49 +00:00
Nico Pietroni ae18d9b445 added VectorFromCoord function 2014-08-28 09:46:16 +00:00
Paolo Cignoni 0337582896 Added managment of fixed vertices in the restricted voronoi relaxing 2014-08-28 09:28:39 +00:00
Paolo Cignoni 636cf7bf8a Added possibility of specifying approximation tolerance in the posson disk sampling by number 2014-08-28 09:28:14 +00:00
Paolo Cignoni c08ca27367 harmless warning 2014-08-28 01:56:28 +00:00
Paolo Cignoni fdf0b5b2ec minor aestetical changes and added edge size checking to the IsSizeConsistent function 2014-08-28 01:55:43 +00:00
Paolo Cignoni 875a7d1aac Added RestrictedVoronoiRelaxing mode to the voronoi framework 2014-08-28 01:54:32 +00:00
Paolo Cignoni b452c7a305 Changed the wrapper for poisson disk sampling to use the exact pruning option if radius is not specified.
Corrected bug in the exact pruning that failed to return radius in some cases
2014-08-28 01:53:58 +00:00
Paolo Cignoni 60ca2f2d72 Updated 4pcs to float/double independnece 2014-08-26 08:45:04 +00:00
Paolo Cignoni 967f61b2be Added EdgeMeshUniform method that generate samples over the edges of a polyline in a uniform way. 2014-08-26 01:43:04 +00:00
Paolo Cignoni c6e5015090 Added SplitSelectedVertexOnEdgeMesh that split an edge mesh along the selected vertices. Useful to decompose an edgemesh into simple manifold polylines. 2014-08-26 01:42:09 +00:00
Paolo Cignoni a9202ed7db Added method BuildFromNonFaux to build an edgemesh composed by the "non faux edges". 2014-08-26 01:40:46 +00:00
Paolo Cignoni 9682fcd27d Added to the UpdateFlags::FaceFauxSignedCrease the option to mark as non faux also the boundary edges. 2014-08-26 01:39:18 +00:00
Paolo Cignoni 331021191e cleaned up the field smoohter (includes, headers etc) 2014-08-23 01:37:18 +00:00
Paolo Cignoni 855280fc08 better comments 2014-08-23 01:36:16 +00:00
Paolo Cignoni 6ba1493e3e Small changes for float/double independence 2014-08-23 01:35:52 +00:00
Paolo Cignoni 9b519cb2b8 Added ValidCell check to manage invalid cell in the trivial_walker.
Corrected compiling error due to the derivation from a templated base class (a few "this->" required)
2014-08-23 01:35:15 +00:00
Paolo Cignoni 305ac24a23 Refactored Geodesic a bit to allow float/double independency 2014-08-23 01:33:53 +00:00