Commit Graph

226 Commits

Author SHA1 Message Date
granzuglia 5c809dc701 - renamed GL_TYPE with GL_TYPE_NM in order to avoid names conflict 2014-08-28 08:59:24 +00:00
granzuglia 8cebfaf679 pick.h:
- added support for double scalar type (the changes have been validated by Paolo)
- there is still a bug on the PickClosestFace function.
2014-08-09 10:00:09 +00:00
granzuglia 558fcd784a trimesh.h:
- added ScalarType typedef to GL_TYPE structure
2014-08-09 09:54:43 +00:00
Paolo Cignoni ffb02815a8 Added a static class GL_TYPE with a memenber SCALAR that returns the correct GLenum (GL_FLOAT or GL_DOUBLE) according to the template type. Needed to make this class works also with double... 2014-08-09 00:06:15 +00:00
Paolo Cignoni 9b6833e521 added templated glLoadMatrix that automatically choose the right OpenGL call according the matrix type 2014-08-06 22:37:55 +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 1491037631 Improved float/double consistency removing some wrong Point3f and substitued with MeshType::CoordType 2014-06-27 15:09:08 +00:00
Paolo Cignoni 4fc33e2e95 Improved float/double consistency removing some wrong Point3f and substitued with MeshType::CoordType 2014-06-19 11:42:23 +00:00
Paolo Cignoni b605d04d26 Improved float/double consistency removing some wrong Point3f and substitued with MeshType::CoordType 2014-06-19 11:41:55 +00:00
Paolo Cignoni 9f6d5f1d84 Completed the rewriting all the picking stuff. Now the default is NOT using OpenGL. And it is actually faster on all the machines I have tested... 2014-04-08 09:37:44 +00:00
Paolo Cignoni 306c334877 Added PickFaceSW for selecting faces in a rectangular region. 2014-04-07 14:49:07 +00:00
Paolo Cignoni adfa6dde12 Added PickVertSW to offer an alternative for selection for hw that does not support opengl selection 2014-04-07 12:32:21 +00:00
Nico Pietroni 6071372992 some minor changes 2014-04-07 06:29:56 +00:00
Nico Pietroni 4b15067dd1 minor modifications 2014-02-16 16:37:39 +00:00
Paolo Cignoni 94540d3ca6 float -> GLdouble for better compliance... 2013-12-12 21:09:22 +00:00
Paolo Cignoni d44d6e6f41 changed int -> size_t to remove warnings 2013-12-12 20:52:07 +00:00
Paolo Cignoni ecf5bfeeb2 Added a if(!TMId.empty()) before attempting to bind a texture id from an empty vector... 2013-12-06 10:16:59 +00:00
Nico Pietroni d4eb599a66 resolved 1 warning on cast 2013-11-24 15:08:27 +00:00
granzuglia 6ec773c50a - added missing upper bound control on vector access by index 2013-10-17 17:22:16 +00:00
granzuglia 6b7ca162ce - fixed compile time errors with qt 5.0 2013-05-24 16:31:16 +00:00
Paolo Cignoni b473bebdd3 added another style of rendering to the opengl addon.
Imprpved customizability of arrows
2012-12-21 15:34:32 +00:00
Paolo Cignoni e04a37bf60 removed harmless warnings 2012-12-02 14:57:08 +00:00
Paolo Cignoni 7540b29cf5 Added a few missing const specifiers 2012-11-28 11:23:51 +00:00
Nico Pietroni 70b2cd1d25 removed several functions and moved to the gl wrapper of mixed integer 2012-11-18 18:07:39 +00:00
Nico Pietroni 52648c58ad used per vertex and per face optional attributes 2012-10-15 01:13:30 +00:00
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
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
Nico Pietroni c469b5b948 major modifications 2012-05-25 13:22:07 +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
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 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 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 34cb93552c added glloadmatrix that takes in input a matrix44 (just like glmultmatrix) 2011-12-14 08:53:56 +00:00
Federico Ponchio 4400d8dd2d added multithreading 2011-12-09 16:06:08 +00:00
Massimiliano Corsini da98ec18f1 2011-10-12 07:52:07 +00:00
Paolo Cignoni 2fe129645b Rolled back 2011-10-05 15:04:40 +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
Paolo Cignoni 214904b312 Ongoing corrections of include paths to comply the new folder arrangement 2011-04-03 22:50:59 +00:00