Commit Graph

52 Commits

Author SHA1 Message Date
Marco Di Benedetto ace0fba493 changed checks for quality and color (now using specialized templates working with ocf). 2009-06-28 22:42:42 +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
Paolo Cignoni c5ad3694bd Corrected small bug inserted during the add of pervertexradius ply elements 2009-03-19 10:29:24 +00:00
Paolo Cignoni 666b0996ff Added support for PLY saving and reading of the radius property (useful for point clouds) 2009-03-18 14:39:02 +00:00
Paolo Cignoni 1a4c19c69f removed harmless warnings 2009-03-03 23:39:27 +00:00
Paolo Cignoni 06dbbfec33 Added support for the Stanford range map ply repository (that are raw gridded range maps) 2009-02-16 01:03:11 +00:00
Paolo Cignoni 3d14df75e4 corrected small bug that prevented the loading of tristripped ply files 2009-01-07 14:54:22 +00:00
Paolo Cignoni fe715961f3 added support of binaries ply files with indices stored as short 2009-01-03 22:42:22 +00:00
ganovelli 7b64489526 added Alloc to support polygon meshes 2008-11-26 17:59:29 +00:00
Paolo Cignoni a7a400b40e Changed an old FaceType::HasFaceQuality() into the tempory aware version HasPerFaceQuality(mesh) 2008-10-14 06:39:04 +00:00
Paolo Cignoni 40a149964f made the absence of faces in a ply file a "non critical" error. 2008-10-02 21:46:29 +00:00
ganovelli 8acc6a4e2c Removed Similarity from Shot
Problem: Shot was using similarity merely to store
rotation and translation. 
There was an incompatibility in that Similarity::ToMatrix
gives scale*rotation*translation while in Shot
the translation stores the viewpoint and the rotation the orientation of the Shot.

In this version, a small class ReferenceFrame was done to play the role of similarity and MultMatrix and MultSimilarity functions were added to transform the frame by multiplying it for a Matrix44 (or applying a similarity).

NOTE: the file export_ply.ply and import_ply.h must also be updated.

-- only compiled with .net ---
2008-09-26 17:05:49 +00:00
Paolo Cignoni c693b46f57 added yet another type of face indexes (now 8 different ways!) 2008-04-15 14:12:21 +00:00
Paolo Cignoni 4b769a4e8a added yet another combination of unsigned/signed elements in faces specification to comply to mathematica ply's 2008-03-22 10:24:44 +00:00
Federico Ponchio 0c728e7250 loadmask in Open is now written. 2007-11-19 16:31:55 +00:00
Paolo Cignoni f553ab00b8 added support for per-vertex normal for reading ply point clouds 2007-10-19 22:13:37 +00:00
Paolo Cignoni c1e902f273 wedge colors now are loaded into face color if they are available. 2007-07-02 12:33:34 +00:00
mtarini e1f61a9f6f Texture coord name change! "TCoord" and "Texture" are BAD. "TexCoord" is GOOD. 2007-03-12 16:40:17 +00:00
Paolo Cignoni 746bb8ebf6 Removed initialization of a single face in the main parsing loop. Single face cannot exist anymore with OCF. Moved into the tristrip parsing section. 2007-03-03 02:28:59 +00:00
ganovelli 30fb113d3c added treatment of HasPerVertexFlags absent 2007-02-14 15:30:13 +00:00
mtarini 831310930b added a few typecasts to QualityTypefor vertices and faces (avoids warinings when short int or int is used for Quality). 2007-02-02 00:29:33 +00:00
Marco Callieri a344d59446 camera+shot revamp: changed field names to something with more sense, cleaning of various functions, correction of minor bugs/incongruences, removal of the infamous reference in shot. 2006-12-18 09:46:39 +00:00
Paolo Cignoni cb29c783f2 Removed flags initialization. no more necessary 2006-11-27 10:36:13 +00:00
Paolo Cignoni 1b9a2d40a2 Allowed the correct loading of meshes with 0 faces 2006-10-14 00:18:42 +00:00
Paolo Cignoni 9a7c06e50a Wedge colors are loaded into facecolor only if specified in the incoming pi.mask 2006-05-16 15:01:30 +00:00
Paolo Cignoni 0308e552d0 Corrected bug: mismatch in the index of confidence vertex property (8 instead of 11)
Changed HasPerFaceColor to the new syntax (HasPerFaceColor(m)  instead of FaceType::HasFaceColor() )
2006-05-03 21:21:21 +00:00
Massimiliano Corsini 7da3794f20 Remove signed/unsigned warning 2006-02-03 09:46:24 +00:00
Paolo Cignoni 6046c3b80b Removed warning for unused vars 2006-01-11 10:37:12 +00:00
Paolo Cignoni 6dca4be1ab Changed ply::PlyMask to io::Mask 2006-01-10 13:20:42 +00:00
Paolo Cignoni 0e28dcfe31 Corrected use of mask and callback in function Open(m,filename,mask,callback); 2006-01-04 16:17:03 +00:00
Paolo Cignoni cc15fbcde1 Added support for per vertex color stored as 'diffuse_xxx' property 2005-12-30 22:30:43 +00:00
Paolo Cignoni b2674f227f forgotten a couple of std:: 2005-12-02 10:04:18 +00:00
Paolo Cignoni d010453f42 Added loading of texturenames (normalmap still to do) 2005-12-02 00:01:30 +00:00
Paolo Cignoni a00bf751be Added safe zero initialization of index of wedge texture 2005-11-25 10:23:27 +00:00
Marco Callieri a31f11710a corrected protected access methods (camera, similarity) of shot 2005-11-23 16:59:55 +00:00
Paolo Cignoni fd8e9de787 Added support for non triangular faces (simple fan triangulation) and removed flags intiailization. 2005-11-12 18:13:30 +00:00
Paolo Cignoni fc03684cb5 Added LoadMask without plyinfo and some comment on the mask usage 2005-10-14 15:09:56 +00:00
Paolo Cignoni 70574b6f7f Made inline PlyType specializations 2005-06-10 15:05:00 +00:00
Federico Ponchio 9b9197ccb4 New gcc 3.3.3 (with bugs and features) now compiles. 2005-04-14 15:09:38 +00:00
Paolo Cignoni 4c1f6e73b6 removed small gcc compiling issues 2005-03-18 00:14:40 +00:00
mtarini 71f78f7333 changed 120 "const static" to "static const", and added missing "format" fields to all PropDescriptor literals, to keep Mingw compiler happy 2005-02-08 17:28:22 +00:00
Paolo Cignoni 1e4b447859 Improved the compatibility for ply format for faces having the list size (e.g. number of vertexes of a face) as a char instead of a uchar.
Added a couple of new face descriptors, corrected a bug in error reporting function (and restructured) and translated a few comments.
Thanks to Patrick Min for the careful bug reporting
2005-01-03 10:35:59 +00:00
ganovelli 7540135434 added setidentity della camera 2004-10-07 14:51:10 +00:00
ganovelli 5e15dc4a97 shot/camera io added 2004-10-07 14:19:06 +00:00
Paolo Cignoni ed7382539c Restructured management of error, now the standard open for any mesh type return the error code, the default success value is zero
Any import class has a method ErrorMsg that give a verbal description of an error code.
2004-06-23 15:36:57 +00:00
ganovelli 7ff742f0a9 inclusion of vector..minorchanges 2004-06-11 17:09:41 +00:00
ganovelli e312803b5b changes to comply io_mask moving in vcg::ply namesp 2004-05-28 14:11:13 +00:00
ganovelli 40e7807c68 new line added at the end of file 2004-05-12 10:19:30 +00:00
ganovelli 2c0875381b #ifndef __VCGLIB_IMPORTERPLY added 2004-05-04 02:36:07 +00:00
Paolo Cignoni 08bd299ad2 missing include allocate.h 2004-04-03 13:30:01 +00:00