SU API - how to exchange polygons into triangles by Triangulation

Hello,I am doing the export work in SU, and I find it has a function exporting model in SU to a file which’s format is OBJ , and I wonder if you know how to exchange polygons into triangles by Triangulation ,does it have any api in SU?

You would need to use the Geom::PolygonMesh class:

And a nonprogrammer could export to STL (or OBJ or 3DS from SU Pro) and import the result back.

Anssi

There are many examples that use the polygonmesh etc…
e,g, SketchUp Plugins | PluginStore | SketchUcation
It very old [7yrs], and it needs a module adding etc but the principal works…