Commit Graph

4528 Commits

Author SHA1 Message Date
Paolo Cignoni 9af315bb18 Two significant changes
1) the name of the supposedly non changed mesh is done explicit in the template name 
2) If the the selection of the vertexes is not consistent with the face selection the append could build faces referencing non existent vertices so it is mandatory that the selection of the vertices reflects the loose selection from edges and faces (e.g. if a face is selected all its vertices must be selected
2011-12-15 07:52:51 +00:00
Paolo Cignoni 3b61972116 Implemented the correct management of per edge attribute. It was half done... 2011-12-15 07:23:51 +00:00
Paolo Cignoni 9779f0f8c7 Replaced QAtomicInt with mt::atomicInt 2011-12-14 19:22:17 +00:00
Paolo Cignoni 1dc98465ae Improved the generic atomic int classes. Added atomic_int_generic.h, which should work everywhere but relies on mutexes. 2011-12-14 19:20:40 +00:00
Paolo Cignoni e1c9f212da Updated to use the threading classes defined in wrap/system/multithreading 2011-12-14 17:42:23 +00:00
Paolo Cignoni 2aa0988989 Updated to mime the QThread & related classes interface 2011-12-14 17:39:38 +00:00
Federico Ponchio ebc522f182 removed future code :P 2011-12-14 15:34:21 +00:00
Paolo Cignoni b4f463e909 2011-12-14 15:03:10 +00:00
Paolo Cignoni 412ef1aa65 Added UpdateSelection::VertexFromEdgeLoose
added parameter for preserving the old selection to the UpdateSelection::VertexFromFaceLoose
2011-12-14 08:54:54 +00:00
Paolo Cignoni 34cb93552c added glloadmatrix that takes in input a matrix44 (just like glmultmatrix) 2011-12-14 08:53:56 +00:00
Paolo Cignoni ae58754015 Significant change of names to the UpdateSelection Class.
now follows the standard VertexClear instead of ClearVertex.
Updated all the other files of vcg using it...

(added also selection stuff for edges..)
2011-12-13 10:07:00 +00:00
Paolo Cignoni 5ec7fc1e4a added missing const to the Index function 2011-12-12 23:29:16 +00:00
Paolo Cignoni c038b3584e Corrected blatant bugs in the updateTopology--VertexEdge 2011-12-12 23:28:25 +00:00
Paolo Cignoni c8fecaecf3 added Class VEIterator for traversing all the edges over a single vertex 2011-12-12 23:27:26 +00:00
Paolo Cignoni e8971a7ee7 corrected bug in vertexEdge adjacency relations 2011-12-12 23:26:25 +00:00
Paolo Cignoni e77ebb6cd0 corrected small bug in parsing ply files of polylines and added better error reporting 2011-12-12 23:25:39 +00:00
Federico Ponchio fbee572ad2 removing trash. 2011-12-09 16:08:33 +00:00
Federico Ponchio 4400d8dd2d added multithreading 2011-12-09 16:06:08 +00:00
ganovelli f4010f0dce corrected setOrtho 2011-12-07 13:15:28 +00:00
Federico Ponchio fb482d6757 mergin Jose parts on generic vertex attributes and removing Qt
dependencies
2011-12-05 19:54:17 +00:00
Federico Ponchio 5dec8a9d55 is waiting replaced by is changed 2011-12-05 10:11:08 +00:00
Paolo Cignoni e4b114ea55 Added CheckFlipEdgeNormal that check if a flip modify the involved normals more than a given threshold. 2011-11-30 18:04:53 +00:00
Federico Ponchio 1a00f09ac0 fixed flushing problems. 2011-11-29 12:41:28 +00:00
Federico Ponchio 42208fe186 fixed changed and some docs 2011-11-26 18:08:30 +00:00
Federico Ponchio 059152baba removed debug 2011-11-23 14:40:43 +00:00
ganovelli 27e6c3eb39 *= fixed 2011-11-21 16:47:13 +00:00
ganovelli ab373e50cd missing include added 2011-11-21 16:12:48 +00:00
Paolo Cignoni 3d6857a0b0 re-added the empty constructor to marker face... 2011-11-21 14:04:23 +00:00
Marco Callieri 7616955d64 changed function call from Distance to DistancePlanePoint 2011-11-21 13:20:45 +00:00
Paolo Cignoni 5bcb52529b harmless gcc warning 2011-11-21 09:38:00 +00:00
Paolo Cignoni b09619c1ea harmless gcc warning 2011-11-21 09:37:18 +00:00
Paolo Cignoni 5af75e6dac Removed bug in the ImportEdgeAdj, ImportFaceAdj, ImportHEdgeAdj. All of the same kind...
for(unsigned int vi = 0; vi < 2; ++vi)
 {
   size_t i = Index(mr,er.cEEp(vi));
   el.EEp(i) = (i>ml.edge.size())? 0 : &ml.edge[remap.edge[i]];
   el.EEi(i) = er.cEEi(i);
 }

 el.EEp(i)  should be  el.EEp(vi) !!!!
2011-11-21 09:36:21 +00:00
Paolo Cignoni 0e76a8e0ce Removed the useless faceprojection flag update function. No more needed! 2011-11-21 09:10:52 +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
Paolo Cignoni 285d78d293 removed the default empty constructor to avoid the use of the object without a mesh.... 2011-11-21 09:07:36 +00:00
Paolo Cignoni 8f7aab147d changed BASIC VERSION of the Point-face distance that does not require the EdgePlane Additional data.
now it does not require any more the dreaded face bit flags...
2011-11-21 08:56:52 +00:00
Paolo Cignoni 4c4d505b6f added assert for discouraging inconsistent triangleplane intersection 2011-11-21 08:54:35 +00:00
Paolo Cignoni 20ec79715b Improved comments to the interpolation function that requires a preferential axis 2011-11-21 08:02:31 +00:00
Paolo Cignoni 62167e43bf removed useless reference return in const int imark() 2011-11-21 07:25:31 +00:00
Paolo Cignoni f160468516 added some further controls when reading edges in ply 2011-11-21 07:24:15 +00:00
Paolo Cignoni d714bc124c Added function for dumping set of rects to the utility image dumping functions 2011-11-21 07:23:13 +00:00
Paolo Cignoni 66b2f8539f removed useless reference return in const int imark() 2011-11-21 07:22:00 +00:00
Federico Ponchio 11e859db83 added isChanged for polling changes in cache 2011-11-19 00:39:14 +00:00
ganovelli 6f804cbb20 Distance plane point updated with lib 2011-11-18 14:46:38 +00:00
granzuglia 59b789818e renamed ILLUMINANT_* with VCG_ILLUMINANT_* in order to avoid conflicts with the visual studio defines. 2011-11-18 10:42:19 +00:00
Paolo Cignoni c9fbf25362 Cleaned up
- gcc warnings 
- useless printf...
2011-11-15 18:03:58 +00:00
Paolo Cignoni 342f182ee0 Added RemoveDuplicateEdge and CountNonManifoldEdgeEdge 2011-11-15 11:20:12 +00:00
Paolo Cignoni f9a7860f5e Added a much more robust IntersectionPlaneMeshQuality function to compute the intersection between a mesh and a plane that exploit quality for storing the distance from the plane and to make consistent decision about the cutting of the plane... 2011-11-15 11:19:08 +00:00
Paolo Cignoni e0055f8b5c added a missing const... 2011-11-15 11:15:24 +00:00
Paolo Cignoni 0a80e1e8ca Cleaning up Plane3...
- comments (the sign of the offset please!!!)
- name of the Distance function -> DistancePointPlane(...)
- a missing normalization in the Init (!)
2011-11-15 11:11:12 +00:00