The view#draw draw method in the Ruby API is limited by the GL_POLYGON parameter to handle only simple, convex polygons. That means it will glitch if you have a polygon with holes or that is not convex.
Does anyone have working code to handle non-simple (e.g. with holes) non-convex polygons that you would be willing to share? I suppose it requires triangulating the polygon, but I haven’t yet found code to do that for this general case in 3D.
Thanks @dezmo, that works a charm so long as the SketchUp version is 2022 or later - which applies in my case because I’m working on an overlay and they are only 2023 or later.