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
Paolo Cignoni
8a8f48ac85
Changed all the MeshType::HasSomething() into the now standard tri::HasSomething(MeshType &m)
2012-01-25 10:21:59 +00:00
Paolo Cignoni
384ea891dc
added drawing of edges in wireframe if meshes has no faces
2011-05-10 21:57:01 +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
Nico Pietroni
ce779c0082
added if(tm==TMPerWedge) glEnable(GL_TEXTURE_2D); on line 543
2010-07-15 13:29:31 +00:00
granzuglia
8f2c1d543d
fixed small visualization bugs (dereferenced empty vertex attributes)
2010-05-24 14:53:54 +00:00
Paolo Cignoni
4cfffc32f2
corrected managment of per-mesh color for point clouds
2010-04-28 15:02:05 +00:00
Paolo Cignoni
aa04a96264
Never try to make a glwrap DrawFill over an empty mesh...
2010-04-27 09:50:55 +00:00
Paolo Cignoni
c095f8efe6
added pushattrib/popattrib in the point rendering code of gl trimesh wrapper
2010-04-20 01:01:13 +00:00
Paolo Cignoni
0f221f2d99
added suppor for per vertex tex coord rendering
2010-04-08 16:52:23 +00:00
Nico Pietroni
1438c44f5f
- Allowed the usage of per vertex coordinate , uncommented tm==TMPerVert options
...
- corrected cast warning on line 721
2010-04-05 15:29:19 +00:00
Nico Pietroni
66ae917613
commented "int _t2=clock();" call in Crease function, it is unuseful and requires to include time.h
2009-07-17 17:44:40 +00:00
Paolo Cignoni
2d3d9bd13f
corrected wrong test on the use of faux edges when drawing in wireframe
2009-05-21 22:59:16 +00:00
Nico Pietroni
147817f6ea
line 795 changed DrawWire<NMPerVert,CMNone>(); -> DrawWire<nm,CMNone>();
2009-04-22 15:22:48 +00:00
mtarini
97b5d83721
Now all wireframes mode hide "faux" edges
...
(those inside a polygon face),
IFF you do SetHint(HNIsPolygonal).
2009-04-20 22:57:42 +00:00
mtarini
935b2e102b
added a test on existence of glPointParameterfv before its use in point-based mesh rendering to avoid crashes.
2009-04-20 16:30:35 +00:00
Paolo Cignoni
7befff7bec
make point2 derived Eigen's Matrix, and a set of minimal fixes to make meshlab compile
...
with both old and new version. The fixes include:
- dot product: vec0 * vec1 => vec0.dot(vec1) (I added .dot() to the old Point classes too)
- Transpose: Transpose is an Eigen type, so we cannot keep it if Eigen is used. Therefore
I added a .tranpose() to old matrix classes, and modified most of the Transpose() to transpose()
both in vcg and meshlab. In fact, transpose() are free with Eigen, it simply returns a transpose
expression without copies. On the other be carefull: m = m.transpose() won't work as expected,
here me must evaluate to a temporary: m = m.transpose().eval(); However, this operation in very
rarely needed: you transpose at the same sime you set m, or you use m.transpose() directly.
- the last issue is Normalize which both modifies *this and return a ref to it. This behavior
don't make sense anymore when using expression template, e.g., in (a+b).Normalize(), the type
of a+b if not a Point (or whatever Vector types), it an expression of the addition of 2 points,
so we cannot modify the value of *this, since there is no value. Therefore I've already changed
all those .Normalize() of expressions to the Eigen's version .normalized().
- Finally I've changed the Zero to SetZero in the old Point classes too.
2008-10-28 00:59:46 +00:00
Paolo Cignoni
a3dbc3168b
fix a typo in Program::Uniform()
2008-10-15 09:28:15 +00:00
ganovelli
b4fa6b9c97
-missing template type added in CameraDistance
...
-bug in DrawPoints removed
2008-07-24 12:37:18 +00:00
Paolo Cignoni
700b8cd26e
Removed annoying unsigned vs signed warnings.
...
Thanks to Alain Boyer for the kind bug submission!
2008-06-29 22:44:44 +00:00
Paolo Cignoni
67ce430991
Added point drawing using vertex arrays and distance attenuation for large points
2008-06-10 00:57:46 +00:00
Paolo Cignoni
0e283de929
added sanity checks when deleting buffers
2008-01-28 08:49:58 +00:00
Paolo Cignoni
c80e50570b
Renamed some unmeaningful variable names (b -> array_buffers ; h -> curr_hints)
2007-12-05 11:08:16 +00:00
Paolo Cignoni
63ee2004b6
- Fixed DrawFill method, which required the hint 'HNUseVArray' enabled in order to render the mesh with VBO. This was also causing extra overhead in the Update method since HNUseVArray has to be enabled and therefore extra calculation were done to copy vertices in VArrays even if the user was using only VBOs.
2007-12-04 17:59:41 +00:00
Marco Di Benedetto
fe22c31f2d
*** empty log message ***
2007-09-12 16:20:24 +00:00
Marco Di Benedetto
5261480fc7
Corrected indexing for non textured faces.
2007-09-12 14:48:50 +00:00
Paolo Cignoni
13a26e1b89
Added cast for mac compiling
2007-01-18 01:26:23 +00:00
Paolo Cignoni
1cb21d78f1
Slightly changed the colormaterial mode for the flatwire
2006-12-12 11:06:58 +00:00
Federico Ponchio
4b46ed3c4e
Aggiunti un paio di typename... al solito.
2006-10-14 16:26:26 +00:00
Paolo Cignoni
283834183d
gcc dislike doubleline comments; removed.
2006-05-25 09:40:14 +00:00
Paolo Cignoni
1f2ff388d2
Removed glew inclusion
2006-02-13 13:05:05 +00:00
Paolo Cignoni
287fd21a07
Switched from rough zoffset to glpolygonoffset for hiddenline and flatlines modes. Less zfighting...
2006-02-09 10:00:39 +00:00
Paolo Cignoni
d32db6dd2a
add test (tm==TMPerWedgeMulti)
2005-12-15 14:05:59 +00:00
Paolo Cignoni
67528dcf14
multiple texture support
2005-12-14 00:18:43 +00:00
Paolo Cignoni
b3abb3c44f
Changed a wrong uppercase in the include
2005-12-02 10:38:07 +00:00
Paolo Cignoni
8ae47cd7c7
Added support for one texture mode (perwedge)
...
Changed texturemapid array into a safer vector
2005-12-02 00:03:22 +00:00
Paolo Cignoni
6a04d281df
Added bound checking in texture access
2005-11-24 08:06:50 +00:00
Paolo Cignoni
7bca532292
Added a missing colormaterial for flatwire.
2005-11-22 23:57:28 +00:00
Federico Ponchio
0446646573
another bunch of typenames.
2005-10-12 18:24:30 +00:00
Federico Ponchio
b54c4ce850
Added gazillions typenames, commented out old broken functions,
...
added unsigned int TextureMapID[128], and unsigned int & TMId(int i).
2005-10-12 17:19:03 +00:00
Paolo Cignoni
9447483394
ho tolto 2 warning del tipo unreferenced formal parameter, commentando le var che producevano tale warning.
2005-05-09 11:28:48 +00:00
Paolo Cignoni
b07f6f2343
Minor Changes To Compile With List Containers.
2005-04-22 15:16:48 +00:00
Paolo Cignoni
6c1174ecdd
ripristinata la modalita' di render bbox....
2005-02-26 12:45:23 +00:00
Paolo Cignoni
0fde2046fc
constructor name was wrong (old class name)
2005-01-12 14:39:41 +00:00
Paolo Cignoni
02aee67598
*** empty log message ***
2004-12-15 18:45:50 +00:00
Federico Ponchio
e5d01c7a80
<gl/glew.h> --> <GL/glew.h>
2004-09-30 01:40:39 +00:00
Nico Pietroni
96e07ffd53
changed order of initial include ( it had problems with extension of openGL)
2004-07-13 11:25:57 +00:00
ganovelli
98d0c5b263
first draft: it includes glew !
2004-07-12 15:57:33 +00:00