martijnberger / pyslapi

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

Tris to Quad #48

Open Baccanno opened 2 years ago

Baccanno commented 2 years ago

The addon seems to work pretty well. However, is there a way to keep the exact tris/quad that was set in sketchup ? Everything gets triangulated and is hard to read in our case.

Or do I have a misconception on how sketchup does underlying work ?

grahamwheaton commented 2 years ago

It is possible to import .dae files without triangulation (which I think .skp files are based on?) for me if they could be imported as ngons that would be just as good :)

Baccanno commented 2 years ago

Unfortunatelly when exporting to DAE things gets triangulated as well.

Baccanno commented 2 years ago

Just understood what you where saying. Unfortunately the exported dae model is all broken once imported. We do find back the quads but naming are all gone.

Is it difficult to implement ?

DAE Quad import with a lot of broken pieces : image

The tris version imported with the plugin : image

Baccanno commented 2 years ago

Blender Limite Dissolve approaches a decent result. It is not perfectly matching the Sketchup geometry but clean enough. Though I believe this option could be available in the importer.