Commit Graph

1074 Commits

Author SHA1 Message Date
Nico Pietroni 45633b841e added initial define to avoid multiple inclusions 2012-10-08 11:53:07 +00:00
Paolo Cignoni 194d9eb4d7 Removed two old useless wrong stupid functions that have been left into wrap/trimesh.h for unforgivable lazyness... 2012-10-08 05:30:34 +00:00
Paolo Cignoni 98fd61970e added missing par 2012-10-07 17:20:54 +00:00
Paolo Cignoni 1aa2c374e1 corrected useless test for an ancient opengl extension (glPointParameterfv). no more needed and creating problems to new compilers... 2012-10-05 16:45:25 +00:00
Nico Pietroni e6cc513cae minor changes in singularity drawing 2012-09-22 13:40:56 +00:00
granzuglia 2879a62b08 - some additional check on OpenGL symbol availability (changes Spat approved) 2012-09-20 07:08:09 +00:00
Nico Pietroni 62b1a26ecf changes drawing of cross field to show the 2 main directions 2012-09-05 23:27:10 +00:00
Nico Pietroni a4ee21d5d7 added GLDrawSeams function 2012-09-03 15:58:38 +00:00
matteodelle 7cf395c033 dellepiane: modified uint definition for compatibility with vstudio 2012-09-03 09:35:17 +00:00
Marco Di Benedetto 34655c22bf fixed size update bug in glw texture 2D. 2012-08-29 23:25:28 +00:00
Marco Di Benedetto 03bfd9bf31 added cube map textures to glw. 2012-08-22 12:38:09 +00:00
Paolo Cignoni b20f962dfd Added a missing return value to a Read function 2012-07-06 05:08:39 +00:00
ganovelli 0f99bd505e changes and minor fix to enable input/output with VMI on memory 2012-07-02 14:38:10 +00:00
ganovelli 1fb287e4ce added writing to memory 2012-06-29 15:32:33 +00:00
Marco Di Benedetto 5accefa385 fixed opengl texture units capability query in glw. 2012-06-18 13:47:51 +00:00
Federico Ponchio 8e162f62fc removed debug 2012-06-15 10:58:19 +00:00
Paolo Cignoni 18160d8ea8 Small change for managing correctly the ocf type when adding new faces in ply importer (you should never just copy a face over another one...) 2012-06-14 13:46:41 +00:00
Marco Di Benedetto bff5f97fe6 added check for uniform location in glw program. 2012-06-02 00:35:04 +00:00
Marco Di Benedetto f89f762216 fixed glw framebuffer method. 2012-06-01 22:36:14 +00:00
Marco Di Benedetto e95721b5c4 added methods to glw framebuffer and program. 2012-06-01 16:57:42 +00:00
Marco Di Benedetto ddebef10db fixed compile-time errors in glw texture 2D. 2012-06-01 14:07:39 +00:00
Marco Di Benedetto d2340b7ef9 added texture 2D methods in glw. 2012-05-31 22:41:11 +00:00
Federico Ponchio 0d4a84f012 door closed by defaul and vcg:: namespave 2012-05-29 12:14:27 +00:00
Paolo Cignoni 6254246a05 improved support of saving of polygonal meshes when kept using faux bits 2012-05-28 11:29:14 +00:00
Nico Pietroni c469b5b948 major modifications 2012-05-25 13:22:07 +00:00
Marco Di Benedetto 7a79c7c292 added convenience defaults and functions to glw. 2012-05-23 18:02:22 +00:00
Paolo Cignoni 80363d2ff0 added to these two gl-related files the system independent inclusion of GLU.
IT is necessary since the last version of QT does not include anymore glu when including QGL stuff
2012-05-23 08:50:03 +00:00
Paolo Cignoni efe5d776e2 corrected svg dumping utility and added a few more parameters for better control on labels 2012-05-23 07:59:19 +00:00
Marco Di Benedetto 09335d17ba added preprocessor macro in glw config to disable assertion on not existing program uniforms. 2012-05-19 17:59:50 +00:00
Marco Di Benedetto 754ba0c94f minor changes and functions added to read pixels back in framebuffer. 2012-05-08 16:46:59 +00:00
Marco Di Benedetto 2131d6a681 fixed include, added width and height query for renderbuffer and texture2d. 2012-05-08 10:46:00 +00:00
Marco Di Benedetto 37acc0146a changed NoBase to NoType in glw and resolved conflict with Type enum. 2012-05-07 19:21:47 +00:00
Marco Di Benedetto a9839c1673 changed GLW_STRINGFY to GLW_STRINGIFY, added printing of shader compile and program link logs to stderr. 2012-05-07 16:12:40 +00:00
Marco Di Benedetto d8897e798e main internal changes to glw and some public interface changes that affect naming. CHANGES ARE NOT BACKWARD COMPATIBLE. 2012-05-07 13:18:05 +00:00
Paolo Cignoni 4778217ec5 Corrected a bunch of harmless gcc warning. Only one significant change in the createFramebuffer, added const to all the params to allow the passing of temporary values. 2012-05-06 15:07:13 +00:00
Paolo Cignoni 5dbe87d368 corrected harmless gcc warnings 2012-05-05 14:52:57 +00:00
Paolo Cignoni 59ca545056 corrected a bunch of Face::HasSomething() into HasPerFaceSomething(mesh) 2012-05-05 14:50:43 +00:00
Marco Di Benedetto eae419e894 fixed copy-paste bug in glw. 2012-05-01 22:17:30 +00:00
Marco Di Benedetto 8712813a97 glw: added framebuffer status check, fixed renderbuffer creation. 2012-05-01 00:28:50 +00:00
Marco Di Benedetto c70bd419a7 first commit of the glw library. 2012-04-30 18:23:53 +00:00
matteodelle 761172501b dellepiane: fixed file opening in AddIntrinsics 2012-04-26 14:44:12 +00:00
matteodelle 4e6f8f55f5 dellepiane: fixed AddIntrinsics function, now it works (provided that metadata are present...) 2012-04-24 15:00:49 +00:00
Marco Di Benedetto 332b5d102d fixed bug in ply exporter: changed IOM_VERTCOORD to IOM_VERTTEXCOORD when testing the save mask for texcoords. 2012-04-10 14:55:58 +00:00
granzuglia e4e95f4aaf removed dangerous ImageInfo redefinition. 2012-04-05 09:01:44 +00:00
granzuglia b08a3dfb31 - added extern "C" {void ProcessFile(const char * FileName);} in order to compile
- added ImageInfo_t ImageInfo; in order to link. WARNING! this definition MUST be removed asap!
2012-04-04 17:59:47 +00:00
granzuglia 39835a8849 - updated jhead.h included file. The user of import_out.h file MUST set up the project in order that the exif library folder can be found by the compiler. 2012-04-04 12:45:32 +00:00
Paolo Cignoni 2e924c6c24 Removed external lib "Exif" 2012-04-04 10:47:27 +00:00
Nico Pietroni 2413b12724 switched to the new version of tangent directions component per face 2012-03-29 16:35:15 +00:00
Nico Pietroni 9d37776dd6 first release version 2012-03-16 13:50:45 +00:00
Paolo Cignoni a912ac3a82 Small changed in the rendering of the trackball icon to remove the stepped line effect due to line antialiasing 2012-03-06 11:52:00 +00:00
Paolo Cignoni 3c85446ae4 added another special key to the one mapped from qt to anttweakbar 2012-03-04 16:27:02 +00:00
Paolo Cignoni 3a9c974fd5 Handy function for setting the size of the drawing in mm and correct management of label printing 2012-02-16 17:31:31 +00:00
Luigi Malomo e2b5b6fba3 Added to anttweakbar qt mapper a function to copy std::string values 2012-02-14 11:39:27 +00:00
Paolo Cignoni 1def190868 harmless gcc warnings 2012-02-09 17:55:41 +00:00
Nico Pietroni f786569888 completely restructured the class, corrected several bugs and added several features 2012-02-09 14:00:00 +00:00
Paolo Cignoni a12597eeac Better factorization of the qt mouse handler for the sample qt+anttweakbar example. Now there is a separated file under wrap/qt with the mouse and keyboard event handler 2012-02-02 06:48:40 +00:00
Paolo Cignoni 00cf1d4df8 added yet another version of the interface for dumping set of polygons on png/svg 2012-02-02 06:45:42 +00:00
Paolo Cignoni 95f9fff41f Restructured functions to dump set of polygons into images or svg files 2012-01-30 15:22:42 +00:00
Paolo Cignoni 8a8f48ac85 Changed all the MeshType::HasSomething() into the now standard tri::HasSomething(MeshType &m) 2012-01-25 10:21:59 +00:00
Nico Pietroni 36b4d6eeab added inclusion of point2.h 2012-01-23 13:13:24 +00:00
Paolo Cignoni f45e0cec3a Changed all the MeshType::HasSomething() into the now standard tri::HasSomething(MeshType &m) 2012-01-20 07:44:55 +00:00
ganovelli c6d261e5c8 added path for the images 2012-01-19 13:50:15 +00:00
Paolo Cignoni f64b175b13 Updating after the change
IntersectionPlaneLine -> IntersectionLinePlane
2012-01-18 16:49:18 +00:00
Paolo Cignoni fbe0b23839 corrected bug in the allocation of the result of multiple connected triangulations (poligons with holes, and added parameter to revert the order of outlines) 2012-01-18 16:48:06 +00:00
Paolo Cignoni 880fca974f - debugged importer from Bundler format 2012-01-15 19:38:58 +00:00
Paolo Cignoni 653866c814 - just changed one comment in wrap/Exif/exif.pri 2012-01-15 18:00:15 +00:00
Paolo Cignoni 3f7786cb43 Modified the Readme.txt (old comments were there before) 2012-01-09 17:25:45 +00:00
Federico Ponchio d3a9c2c556 removed assert 2012-01-09 13:43:27 +00:00
Federico Ponchio a032a4dae6 new define NEXUS_USE_QT 2012-01-05 17:52:34 +00:00
ganovelli b535e9293e compiled with mingw 2011-12-28 14:14:17 +00:00
ganovelli 1a1844cb34 added bundler importer (and small library for Exif reader) 2011-12-28 13:47:08 +00:00
Federico Ponchio 17fbc7d1ca hopefully fixed race condition updating priorities 2011-12-20 18:25:13 +00:00
Marco Callieri b853e5fd3f - removed from standard trackball rendering the useless plane handles (can be re-drawn using a parameter, that is false by default)
- different color on the three circles of the trackball (X red, Y green, Z blue)
2011-12-20 12:27:30 +00:00
Paolo Cignoni 25640feb09 Deleted unneeded #include <iostream> 2011-12-17 11:53:27 +00:00
Paolo Cignoni 83bbd0920f Small modifications to compile under xcode. 2011-12-17 11:52:27 +00:00
Paolo Cignoni 091c1cbf8e Replaced: push_back(elt); by this->push_back(elt); to avoid compilation errors under xcode. 2011-12-17 11:50:40 +00:00
Paolo Cignoni 85e58b7915 Removed some debug cout 2011-12-16 09:28:36 +00:00
Federico Ponchio 4970401d03 typo fixed 2011-12-15 19:35:03 +00:00
Paolo Cignoni 6b2e8c50d2 Several bugfixes 2011-12-15 18:51:53 +00:00
Paolo Cignoni 3adba90ef3 small bugfixes in atomic_int_generic.h 2011-12-15 17:38:34 +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 34cb93552c added glloadmatrix that takes in input a matrix44 (just like glmultmatrix) 2011-12-14 08:53:56 +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
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
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
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
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
Paolo Cignoni e5842d71d8 Small changes to the utility function to save a bunch of 2 polygons onto a bitmap. 2011-11-15 11:01:53 +00:00
Paolo Cignoni 010b310cac Added support of polylines (edges) in PLY support. Used the format suggested in the web description of the ply format ( http://paulbourke.net/dataformats/ply/ )
element edge 5                        { five edges in object }
property int vertex1                  { index to first vertex of edge }
property int vertex2                  { index to second vertex }
2011-11-07 16:14:46 +00:00
Paolo Cignoni 4859aa4d80 Added small utility to dump the result of a packed texture into a img 2011-11-07 16:11:51 +00:00
Federico Ponchio 4c6fad3054 turned assert into debug warnng (needs to be investigated) 2011-10-26 09:27:13 +00:00
ganovelli cedf5fb284 bug fixing:
- mixup of nomes Edge and Face on the components.
- possibly use of empty vector in import_obj.h
Thanks to nagaokagetora for showing them
2011-10-25 10:03:10 +00:00
ganovelli fce10a34fa point3f to point3d conversion error. 2011-10-21 12:18:18 +00:00
Paolo Cignoni d019261682 harmless gcc/clang warnings 2011-10-15 21:30:41 +00:00
Paolo Cignoni 3665268aa4 Significant refactoring. Cleaned up the non glutesselator code. Quad are split in a simpler way. Support for the qobj format preserved... 2011-10-13 08:02:10 +00:00
Paolo Cignoni fca3d016d8 added a missing include<stddef> 2011-10-13 07:40:13 +00:00
Massimiliano Corsini da98ec18f1 2011-10-12 07:52:07 +00:00
Paolo Cignoni bf01793bd8 Added support for point clouds to openctm. Using an hack becouse openctm officially do not want it... 2011-10-06 14:00:54 +00:00
Paolo Cignoni 2fe129645b Rolled back 2011-10-05 15:04:40 +00:00
Paolo Cignoni 6ade8d7dfb In MinGW there's no strtok_r, nor strtok_s functions. strtok is the only one available (to my knowledge) 2011-06-14 14:25:45 +00:00
Federico Ponchio 2ad7d34050 fixed flush 2011-06-09 15:30:16 +00:00
Federico Ponchio 987a4e0234 some comment, flush now REMOVES TOKENS. 2011-06-06 15:54:47 +00:00
Paolo Cignoni 93c48b10a2 strtok_r does not exist in windows that instead has strtok_s
Added #define strtok_r strtok_s
2011-06-03 09:03:56 +00:00
Paolo Cignoni 57c5e617dc Another change due to the recent SimpleTempDataBase changes... 2011-06-03 09:02:48 +00:00
Paolo Cignoni 60618323bd changed the use of SimpleTempData in VMI 2011-06-03 08:38:13 +00:00
Paolo Cignoni 609d3a7141 Removed useless static modifiers to local variables of ply utility functions 2011-06-03 08:35:01 +00:00
Paolo Cignoni ca28591e69 Made the boundary capper based on the glu tessellator interface more robust to deleted stuff 2011-05-31 08:40:02 +00:00
Paolo Cignoni 7ff3b08e5f updated to use pos instead explicit topology 2011-05-24 09:42:10 +00:00
Paolo Cignoni 2239cbd747 added simple boundary capper. Takes a edge mesh and caps its boundaries. 2011-05-11 10:04:33 +00:00
Paolo Cignoni f0a5d17759 Added a hint that you NEED opengl definition before including this file 2011-05-11 10:03:28 +00:00
Paolo Cignoni 384ea891dc added drawing of edges in wireframe if meshes has no faces 2011-05-10 21:57:01 +00:00
matteodelle 49a15ebd82 mozione ponchio per rimozione codice inutile 2011-04-27 13:02:30 +00:00
Nico Pietroni b483d00bd8 corrected a bug on writing per Wedge textcoords.. 2011-04-20 16:49:58 +00:00
granzuglia f3969b8774 remove crash when all vertices and faces have been marked as deleted but the are still in the vert/face vectors 2011-04-15 08:46:43 +00:00
granzuglia f49691377c added missing include file and namespace prefix 2011-04-13 12:29:21 +00:00
Federico Ponchio a4af30479c added missing includes. 2011-04-11 16:48:13 +00:00
Paolo Cignoni fd13cc4675 Updated to the new trimesh centric philosophy 2011-04-05 08:55:57 +00:00
Paolo Cignoni 50184c49fb Ongoing corrections of include paths to comply the new folder arrangement 2011-04-03 22:51:27 +00:00
Paolo Cignoni 214904b312 Ongoing corrections of include paths to comply the new folder arrangement 2011-04-03 22:50:59 +00:00
Paolo Cignoni 477dd698bd Ongoing corrections of include paths to comply the new folder arrangement 2011-04-03 22:50:10 +00:00
Paolo Cignoni 4b0fb8bb2e Ongoing corrections of include paths to comply the new folder arrangement 2011-04-03 20:55:22 +00:00
Federico Ponchio ef6048e639 local paths now 2011-03-31 14:10:26 +00:00
Paolo Cignoni 646cfe482d With a couple of parenthesis no need any more for NOMINMAX 2011-03-25 10:37:07 +00:00
matteodelle 0d98d0216e Added import/export of color per vertex (only for triangular meshes for now) 2011-03-23 21:00:40 +00:00
Federico Ponchio bee287603e added minimal doc on Open. 2011-03-21 17:20:38 +00:00
Federico Ponchio 61d01309ac removed comment 2011-03-21 15:44:00 +00:00
matteodelle 9d7b9784b0 Added wrapping functions for tsai calibration 2011-03-16 09:26:23 +00:00
granzuglia d95b28dff4 removed no faces crash 2011-03-15 16:40:08 +00:00
Federico Ponchio 2b9a2a7249 addToken checks if already in cache. 2011-03-14 11:35:43 +00:00
granzuglia 81bca52d1b added 64-bit compatibility (unsigned int -> void*) 2011-03-14 11:18:16 +00:00
Federico Ponchio f206cd649d moved from sandbox 2011-03-11 16:14:54 +00:00
Marco Callieri 90c3924a77 changed the type of "header" in PlyFile from char [4096] to std::string to avoid buffer overrun on loading plys with veeery long comments 2011-02-21 11:04:55 +00:00
Paolo Cignoni 3eb92cbe8a harmless gcc warnings 2011-02-17 11:38:01 +00:00
Paolo Cignoni 7037098822 Added to BitQuad Support a Generic quad triangulation function and used in OFF importer.
It takes in input 4 vertex pointrs and rotate them so that a simple fan triangulation is Ok.
  It uses geometric criteria for avoiding bad shaped triangles, and folds
  and it use an internal set of already created diagonal to avoid the creation of non manifold situations.
2011-01-27 15:49:21 +00:00
granzuglia b75a2c77a0 removed crashes when a not well-formed mtl file has been opened. 2011-01-25 09:10:34 +00:00
ganovelli f7d8e31056 minor (missing include, left CMeshO) 2011-01-23 22:28:39 +00:00
Paolo Cignoni 71bdb18e07 Added more hints for better controlling point rendering (smoothnes and distance attenuation) 2011-01-18 11:11:19 +00:00
Paolo Cignoni 423fce1321 automatically detect the color format (integer between 0 and 255 or
floats between 0 and 1)
2011-01-17 10:06:15 +00:00