Commit Graph

629 Commits

Author SHA1 Message Date
Alessandro Muntoni c275c8fa87
Merge pull request #166 from antonioneves/master
Close opened files when reading an STL file.
2021-03-25 14:33:28 +01:00
alemuntoni adb799a0a2 fix const correctnes of face/component.h 2021-03-24 19:15:10 +01:00
alemuntoni ea276afef7 fix wrong static usage on PerElement PlyInfo 2021-03-23 20:27:06 +01:00
alemuntoni e0ccec2fc8 ConstPerFaceAttributeHandle 2021-03-23 16:12:04 +01:00
alemuntoni 7c601cc837 ConstPerVertexAttributeHandle 2021-03-23 15:27:13 +01:00
alemuntoni 8b36975248 dxf, gts and partial obj const correctness 2021-03-19 12:58:38 +01:00
alemuntoni abcde4bbed vrml const correctness 2021-03-18 18:54:15 +01:00
alemuntoni 3d0e74e472 stl const correctness 2021-03-18 18:30:54 +01:00
alemuntoni 0a2ed11ac2 (partial) ply const correctness 2021-03-18 18:21:59 +01:00
alemuntoni a1e1ba882f 3ds const correctness 2021-03-18 17:23:27 +01:00
alemuntoni b54ca75043 fix import_stl for windows build 2021-03-02 15:32:35 +01:00
alemuntoni fed787ebb9 fix stl filesize computation for >2gb files (see https://github.com/cnr-isti-vclab/meshlab/issues/924) 2021-03-02 14:25:30 +01:00
alemuntoni e292f0cc9b fix malformed file on some stl files (see https://github.com/cnr-isti-vclab/meshlab/issues/732) 2021-02-12 17:48:34 +01:00
Luigi Malomo 4ae9537e75 added check for file path length when opening a mesh with the generic importer 2021-02-10 12:33:03 +01:00
Antonio abb29e7300 Close opened files when reading an STL file. 2021-02-08 23:03:37 +01:00
alemuntoni 280245b70b hardcoded floats to Scalar; fix some warnings (#158) 2021-01-28 12:46:13 +01:00
alemuntoni cc0bd7b1e2 fix exif include 2020-11-30 10:59:15 +01:00
alemuntoni 59548afa48 import ply supports uint type for edge properties vertex1 and vertex2 2020-11-19 17:40:32 +01:00
alemuntoni 6228d92fec solved crash for stl meshes > 2GB 2020-11-16 09:54:18 +01:00
alemuntoni dd8c26474d vcg/wrap/import_out.h uses easyexif lib, small typo corrected in alnParser 2020-09-23 13:07:03 +02:00
alemuntoni 7e6bdb7106 alnParser in wrap/io_trimesh 2020-06-24 12:36:50 +02:00
alemuntoni f7871eed2d bugfixes and PR template 2020-04-17 16:44:23 +02:00
alemuntoni 9bd0068798 fix import fbx without materials 2020-03-31 15:19:23 +02:00
alemuntoni 3285c6b1e5 fix some gcc warnings 2020-02-27 16:31:39 +01:00
nico 9e4394a656 corrected some error in Import/export 4rosy 2020-01-12 22:33:48 +11:00
Norbert Wenzel d1c9bd68a0 Remove unused overloads that do not compile
The `ReadHeader()` overloads taking a character pointer (filename) as a
first parameter instead of a `FILE*` directly do not compile, as they
are calling an overload of `ReadHeader(FILE*)` which does not exist.
Clang does not seem to care as these functions are unused when compiling
MeshLab (and therefore also VCGLib) but GCC tries to compile these
(unused) functions and rightly fails.

This commit simply removes the overloads taking a filename (`char*`).
They are in a header, but since they should fail to compile on *any*
platform I guess it is safe to remove these overloads, as I do not
expect them to be used anywhere successfully.
2019-10-27 08:59:57 +01:00
T.Alderighi 910da4c3e3 fixed bug when opening ply files containing float scalartype on a double scalartype mesh and viceversa 2019-09-19 17:56:55 +02:00
T.Alderighi ca65cf2162 added support for face normals export and import and face (double precision) quality export and import for ply format 2019-09-10 15:42:41 +02:00
Luigi Malomo e6c18ff6d3 ply export: face quality type fixed 2018-12-14 16:44:55 +01:00
Paolo Cignoni 07de5590ff Added support of polygonal mesh to OFF
(not only bitpoly also the plain poly mesh)
2018-11-29 00:32:58 +01:00
Andrea Maggiordomo c67a33e45c Adding multitexture support to FBX importer 2018-10-16 13:02:47 +02:00
Paolo Cignoni 161c2c04f9 Add io_trimesh/import_fbx.h and sample file 2018-09-09 09:26:07 +02:00
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