Sanaxen / OBJ-to-IGES

Convert Mesh data to surface data
MIT License
26 stars 3 forks source link

Errors with STL file #1

Open yvanblanchard opened 1 year ago

yvanblanchard commented 1 year ago

Hello,

I compiled your code and ran it with stanford bunny STL mesh, but I got lots of errors. See output console and STL file attached:

image

image

Bunny.zip

Sanaxen commented 1 month ago

Sorry. STL files cannot be used for input. Please try converting them to OBJ format before executing.

yvanblanchard commented 1 month ago

Thank you @Sanaxen

I tried with OBJ file (converted from STL), but the program stops (or hangs) at very beginning:

image

I tried various way of converting to OBJ, and same issue. I also tried other obj files (original), but still failed.

Here is the OBJ file Bunny-OBJ.zip

Sanaxen commented 1 month ago

Sorry for the lack of explanation. This tool is for OBJs with UV information.

The attached log shows an error for vertex uv num error. This tool is called from mesh2cad when converting OBJ to CAD data, so it is recommended to use mesh2cad.

However, when I tried it, it generated a non-manifold part. I ended up with an incomplete conversion. I tried several parameters without success.

I assume that the topology of the mesh data is correct, but it fails if there are small or collapsed triangles. It is important to clean up the mesh data automatically.

However, this could be due to mesh2cad's segmentation process. At this time it is not possible to automatically clean up the data output by segmentation.

I have attached the incomplete conversion. iges.zip

Sanaxen commented 1 month ago

uvmapping.zip

Sanaxen commented 3 weeks ago

I used meshlab's function “Decimation with Simplified Quadric Edge Collapse”. Conversion to CAD data went well.

image image iges (2).zip uvmapping (2).zip