martijnberger / pyslapi

Python bindings for the official Sketchup API
237 stars 134 forks source link

Flipped normals and smooth edge #56

Open builder-main opened 4 months ago

builder-main commented 4 months ago

Describe the bug Some normals are flipped when imported through the plugin also hard edges are not respected.

To Reproduce Import the linked SKP both in blender 3.6 with 0.23.2 and in unity 2021.3. LTS, unity has the correct normal orientation and sharp edges. Blender has flipped normals and smooth edges.

Expected behavior When importing the same SKP in Unity for instance, normals and smooth/sharp edges are respected.

Note : Non-sharp edges might be a non issue, Unity might be adding an automatic edge split, but I'm not sure.

example.zip

For the sake of reproduction I did only minimal steps, importing SKP as is and saving the blend file to then import in unity.

Expected result as Unity Skp file preview image

Blender face orientation image

Unity blend file preview image