Commit Graph

65 Commits

Author SHA1 Message Date
Nico Pietroni 017e289d3e added several instructions to close the stream on file once opened and read is complete 2014-04-08 08:35:17 +00:00
granzuglia 89f4146e2c - fixed crash on reading obj with material file 2014-02-21 15:16:40 +00:00
Luigi Malomo 5e22249c96 2014-02-19 18:58:06 +00:00
Paolo Cignoni 303d4e1fca factored out the internal fan tessellator from the obj to a generic place to be used also in other importers 2013-11-25 12:49:12 +00:00
Paolo Cignoni 2b84f16b45 Removed a questionable assert in the splittoken of the OBJ importer 2013-11-11 13:21:05 +00:00
Paolo Cignoni 3657b94ab7 Corrected a bug in the loading of normals when loading an obj with normals but without texcoords 2013-11-08 15:50:51 +00:00
mtarini f1761e86b7 Better error handling + error msg. One assert turned into an error (silva's quads). Faces with < 3 verts and faces with repeated vert now just ignored (non critical errors). 2013-08-21 23:07:25 +00:00
Paolo Cignoni e77e13a8fe Improved management of fauxbit for quad and polygonal meshes in OBJ (did not set the high level polygonal bit) and OFF (wrong faux bits for polygonal faces with more than 4 sides) 2013-04-12 09:49:51 +00:00
granzuglia a6f71e32dd - removed bug on LoadMask
: from if (oi.numTexCoords == oi.numVertices) to if (oi.numNormals == oi.numVertices)
2013-01-24 11:43:43 +00:00
Marco Di Benedetto b70569feb8 fixed bugs in OBJ importer that caused crashes when the v/vt/vn vertex pattern was not the same for all vertices in the file. 2012-12-05 17:38:16 +00:00
Paolo Cignoni cccc066735 removed harmless warnings 2012-12-02 14:53:37 +00:00
Paolo Cignoni 4dbbb9384a better check of emtpy line skipping in obj parsing 2012-10-31 21:03:05 +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 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 2fe129645b Rolled back 2011-10-05 15:04:40 +00:00
granzuglia f49691377c added missing include file and namespace prefix 2011-04-13 12:29:21 +00:00
Paolo Cignoni 4b0fb8bb2e Ongoing corrections of include paths to comply the new folder arrangement 2011-04-03 20:55:22 +00:00
Paolo Cignoni 3eb92cbe8a harmless gcc warnings 2011-02-17 11:38:01 +00:00
granzuglia b75a2c77a0 removed crashes when a not well-formed mtl file has been opened. 2011-01-25 09:10:34 +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
Paolo Cignoni dfba841714 add support for vertex per color with OBJ files (read/write) 2011-01-13 18:04:32 +00:00
Paolo Cignoni 4ee60382b0 put qt debug code inside guards 2010-03-18 10:20:08 +00:00
mtarini 54ca153009 mini-changes at various importer exporters, to maximize compatibility 2010-03-13 00:52:17 +00:00
Paolo Cignoni 73ed783085 Significant change. Now obj with non-convex polygonal faces are correctly managed (and faux edges are supported too). Warning it requires GLU because it relies on glu tessellation. 2009-12-17 17:49:51 +00:00
Marco Di Benedetto 08f9b6a4b3 prevented cast/unused/uninitialized warnings and some indentation work. 2009-12-01 17:37:45 +00:00
Marco Di Benedetto 8e9062b12b 1) fixed token parsing : SplitToken() should take the original IO mask and not the clamped (with mesh attributes) one.
2) some indentation work.
2009-11-22 19:09:53 +00:00
Marco Di Benedetto 1994b5b493 removed implicit cast warning. 2009-10-21 18:43:51 +00:00
Paolo Cignoni d3b6444cb4 added polygonal bit mask setting 2009-10-01 15:46:54 +00:00
Paolo Cignoni 8be83c0e45 Added support of reading QOBJ variant of obj files (just quads) 2009-09-23 15:09:05 +00:00
Marco Di Benedetto e3f40f6c36 added checks for components before accessing them. 2009-06-22 16:53:40 +00:00
Marco Di Benedetto 60041df5b4 initialized material texture index to -1. 2009-04-27 10:00:53 +00:00
granzuglia 17d5caeed1 fixed compiler's errors 2009-04-21 05:58:08 +00:00
mtarini 241d058c92 Changed importers (off ply obj raw) to tag edges inside polygonal faces as "faux" 2009-04-20 22:59:08 +00:00
Marco Di Benedetto 8a454d266c added detection of wedge normal in LoadMask. 2009-03-24 17:14:54 +00:00
Paolo Cignoni 6f533063ae uint are not a standard type... 2009-01-07 08:58:00 +00:00
Paolo Cignoni 28c13b2037 removed harmless gcc warnings 2009-01-03 22:44:49 +00:00
Paolo Cignoni 5e1ccc4cfc added missing std:: 2008-12-19 15:52:20 +00:00
ganovelli 70ea5c2057 added support for loading directly polygon meshes.
If you are not using polygon mesh this commit does not change anything.
2008-12-18 18:02:44 +00:00
Massimiliano Corsini e98422ee49 fix tokenizeNextLine 2008-10-27 15:19:28 +00:00
Paolo Cignoni e5572b4f05 added support of internal edge bit for keeping track of triangulated polygonal faces 2008-06-26 08:41:11 +00:00
Paolo Cignoni bd784fabaa Corrected a small bug in the management of negative indexes of obj on non triangular faces 2008-06-14 07:29:31 +00:00
Paolo Cignoni e5857b7925 corrected a small bug causing crashes when loading bad-formed mtl files 2008-06-13 07:05:59 +00:00
Paolo Cignoni 6cf9aa4552 removed duplicated material class 2008-02-27 23:48:06 +00:00
Paolo Cignoni 04d307db0e added missing cast for normal assignments 2008-01-17 18:02:02 +00:00
Paolo Cignoni 8b69adbfbd removed harmless gcc warnings 2007-12-13 17:57:33 +00:00
Paolo Cignoni dcdfdb1305 correct management of point only files 2007-10-17 09:49:50 +00:00
Paolo Cignoni cb9308761e Added in load mask the face color bit when there is a generic material used 2007-07-20 14:49:46 +00:00