papagiannakis / pyGLV

computer Graphics for deep Learning and scientific Visualization
Apache License 2.0
7 stars 9 forks source link

obj importer does not work for anonymous meshes #23

Open MichalisTamiolakis opened 1 year ago

MichalisTamiolakis commented 1 year ago

Error:

Traceback (most recent call last): File "d:\Documents\Git\Elements\pyGLV\pyGLV\examples\example_6_import_objects.py", line 117, in imported_obj = Wavefront(obj_to_import) File "D:\Documents\Git\Elements\pyGLV\pyGLV\GL\objimporter\wavefront.py", line 38, in init self.parse_from_file(encoding) File "D:\Documents\Git\Elements\pyGLV\pyGLV\GL\objimporter\wavefront.py", line 62, in parse_from_file if line[0] == "#" or len(line)<1:

is thrown when trying to import .obj file that does not have a 'o [name]' command in it

kamarianakis commented 1 year ago

Work is to be done on feature branch fixing_importer