tudelft3d / City3D

Large-scale LoD2 Building Reconstruction from Airborne LiDAR Point Clouds
https://github.com/tudelft3d/City3D
GNU General Public License v3.0
237 stars 39 forks source link

[BUG] - Resulting WAVEFRONT OBJ Files are Invalid #39

Closed mudandstars closed 6 months ago

mudandstars commented 6 months ago

Hi there,

Describe the bug when using City3D to reconstruct individual buildings, all buildings (result.obj) tested so far are invalid, according to val3dity (so far usually threw errors 104 for multiple faces per building).

Even though I can still render the building using three.js just fine, the precise geometry is broken and when I want to convert it to tiles for mapbox using pg2b3dm, it does not throw any errors but the resulting .glb tiles seem to be simple triangles, not the expected buildings.

Tell us how to reproduce the bug I attach two of the resulting .obj files so you can run val3dity for yourself and/or see how they look in a viewer. I also attach a resulting .glb file. Download via this link: https://we.tl/t-EKMlOACtiF

Development/Running environment:

I would really appreciate any help on fixing this.

All the best Paul

LiangliangNan commented 6 months ago

I am 100% sure generated files are valid OBJ format. All major CAD modelers can load and visualize these files.

But, val3dity validates 3D primitives according to the international standard ISO19107. This is different from checking valid OBJ files.

I am not sure if one of the following failed val3dity:

Anyway, this is neither a bug nor an issue that deserves exploration because City3D is simply a research prototype. Any simple and straightforward postprocessing is beyond the research scope of this project. So I am going to close this issue.