Commit Graph

597 Commits

Author SHA1 Message Date
Marco Callieri 8b5a56b262 PTX import changes to support LEICA
order of columns goes counter-clockwise for Leica, but clockwise for FARO, so, when building faces and calculating normal, we have to take care of this.
2018-05-17 17:11:29 +02:00
Marco Callieri eaff614cb9 added check for save errors 2018-05-09 14:06:32 +02:00
Paolo Cignoni d8fa7295e7 Added yet another variant of ply ushort/char combination...
close meshlab bug #290
2018-04-06 11:00:28 +02:00
Paolo Cignoni 95a2c62104 Refactored a bit the obj importer to remove bug caused by meshes with and without textures 2018-04-06 10:33:53 +02:00
Paolo Cignoni 524f8e8a61 Corrected bug in texture saving (vt vs wt clash)
It does not worked when trying to save per vert tex in a mesh with also per-wedge.
2018-04-05 11:36:19 +02:00
Marco Callieri 9d14fea462 strdup works on linux, _strdup on windows 2018-03-21 12:07:40 +01:00
Marco Callieri 7939a54f1c warning cleanup 2018-03-21 10:45:12 +01:00
Marco Callieri 302e75772b formatting 2018-03-15 17:18:54 +01:00
Luigi Malomo 16a5d7b999 corrected importer to handle import of polygonal ply into meshes with polyinfo 2018-03-07 20:12:42 +01:00
Paolo Cignoni a6e8112b6a Improved robustness when handling malformed stl files 2018-02-22 19:26:33 +01:00
Paolo Cignoni 70d9050ffc trying to get rid ofa strange template error on linux. 2018-02-21 08:04:28 +01:00
Marco Callieri ec9434d2a1 small fix
For MeshLab, but may be also needed in other cases. We need to store a COPY of the property name, in case the char* that was passed to the function is not persistent. May result ina small leak :(
2018-02-16 18:03:53 +01:00
Marco Callieri d9720914a3 Merge branch 'devel' of https://github.com/cnr-isti-vclab/vcglib into devel 2018-02-16 11:30:25 +01:00
Marco Callieri 25374bd85a warning removal 2018-02-16 11:30:18 +01:00
Paolo Cignoni bf7cf6d5a0 Added saving of per vertex point3 attribute.
warning: it leaks memory...
2018-02-16 07:29:42 +01:00
Paolo Cignoni fe69d16df4 Added support of attributes in saving of ply
with an easy to use AddPerVertexFloatAttribute helper
2018-02-13 19:39:59 +01:00
Paolo Cignoni d49cf2a97c harmless clang warning 2018-02-13 19:37:05 +01:00
Marco Callieri 2fdad915cc mtllib fix
some tools do not add the mtllib line in the header, and simply call the mtl file like the main object file. Added a fall-back code to cover these cases
2018-02-01 17:45:01 +01:00
Marco Callieri 7ab64d844e corrected issues in OBJ importer
- tabs now work as separators in vertices
- per-vertex color presence determination now works correctly
2018-02-01 16:27:05 +01:00
nico 6dd5244ddb minor warning solved 2017-12-19 00:56:57 +11:00
Luigi Malomo 2a52c8ae8c thomas minor changes and fixes 2017-11-23 19:14:02 +01:00
Paolo Cignoni a9e78a1cf5 Corrected small error in the 3ds io wrapper 2017-06-29 11:44:15 +02:00
Luigi Malomo 5f27854447 fixed crash when importing a polygonal ply onto a polygonal mesh 2017-05-30 19:18:57 +02:00
Paolo Cignoni a745b77c04 Added default initialization of materials in io importer 2017-05-12 18:21:55 +02:00
Paolo Cignoni 66fde513b1 Merge pull request #22 from johnmaf/bugfix/ambient-map
Don't assign MTL ambient map value to diffuse map
2017-05-12 17:08:04 +02:00
Paolo Cignoni 43f114d237 Heavy refactoring of the OBJ export
The recent material attribute changes had some issue when exporting
mesh newly created.
2017-05-12 16:23:12 +02:00
John Senneker d885a45bbd Formatting 2017-05-12 10:21:22 -04:00
John Senneker 446b0fde06 Don't assign MTL ambient map value to diffuse map.
This fixes a bug in which a map_Ka statement appears after a map_Kd, in
which case the former will be assigned as the diffuse map of the
imported mesh, when it should be the latter.
2017-05-09 11:52:40 -04:00
Luigi Malomo 066762521a removed harmless warnings 2017-04-16 16:24:00 +02:00
Paolo Cignoni d7e9209a4f Merge pull request #6 from johnmaf/feature/specular-attributes
Add material attributes in OBJ importer
2017-04-12 10:29:46 +02:00
nico ec20f3307e minor changes on field exporting classes 2017-02-24 18:20:09 +01:00
Marco Callieri c547c56a0d fix for space in material name, filename, texture
added support for space in material name, material filename, texture
name
2017-02-21 17:54:47 +01:00
nico 1356db0573 added LoadCSVField function 2017-01-23 16:23:30 +01:00
Paolo Cignoni 96087ff8e5 FaceGrid -> SparseFaceGrid 2016-12-20 09:12:50 +01:00
John Senneker 0ee03d276d Fix clang compiler errors (">>" -> "> >") 2016-12-12 18:07:20 -05:00
Paolo Cignoni 095a697535 added a check for empty lines in obj (to avoid out of bound accesses) 2016-11-24 18:02:07 +01:00
Paolo Cignoni 62f9ecf602 Harmless warning 2016-11-24 17:13:35 +01:00
Paolo Cignoni a52d3149b1 Added an enum for opening success (E_NOERROR) common to all the imported 2016-11-24 17:13:34 +01:00
John Senneker 7fdfd7423f Add back deleted include in obj exporter 2016-11-22 16:44:36 -05:00
John Senneker dc3f714b34 Add a per-mesh attribute in OBJ importer to hold a
std::vector<Material>, and a per-face attribute to hold an index into
that vector.
2016-11-22 16:21:57 -05:00
John Senneker 1abba4a694 Initial commit 2016-11-21 18:36:20 -05:00
Paolo Cignoni f4feeb5d5b Added support of backslash terminated lines in OBJ 2016-11-18 09:16:52 +01:00
Paolo Cignoni a42c279255 Corrected various warning in an old importer/exporter 2016-11-10 16:41:51 +01:00
Gianpaolo Palma 16de4693b2 Bug fixed in the loading of the per-vertex and per-face color alpha value 2016-10-28 15:00:24 +02:00
Guido Ranzuglia 20fa52181f - fixed "if there is color both vertex/face colors are enabled even if there is just one of them" bug 2016-10-13 04:28:00 +02:00
Guido Ranzuglia 9caa217af9 - removed ply error in 3d model with wedge texture coord saved in ascii format 2016-07-25 12:36:23 +02:00
Paolo Cignoni 32333eba24 Huge copyright sanitization of the header files of vcg folder. 2016-06-13 05:29:25 +00:00
granzuglia c54c85768a - fixed some minor bugs 2016-05-22 15:40:41 +00:00
Paolo Cignoni 662d0ce811 corrected the FileExtension helper func as suggested in BUG#55 2016-02-24 05:57:27 +00:00
Marco Callieri dd56766889 added the writing of the DXF header to the exporter, as it is required by a lot of importers (like Blender) 2016-01-05 10:09:02 +00:00