Continuing the discussion from Highlighting a Bounding Box (of a Group):
YES. (But they are not really geometric faces.)
Try using one of the polygon-like GL constants of View#draw (the last 6 in the list.)
The Sketchup::Tool#draw() documentation actually shows an example
of drawing a pink filled quad with a crimson border.
Here is another example … paste into the console and type
then click with LMB (repeatedly) in the modeling area to see a “walking” polygon.
class TestTool def self.go Sketchup.active_model.select_tool(self.new) end def activate @start = 0 @side = 10 set_points() end def deactivate(view) view.drawing_color= Sketchup::Color.new("Black") end def draw(view) view.drawing_color= Sketchup::Color.new("Orange") view.draw(GL_POLYGON, @points) @start += @side end def getExtents() Sketchup.active_model.bounds.add(@points) end def onLButtonUp(flags, x, y, view) set_points() view.refresh # calls getExtents() then draw() method end def set_points() @points = [ Geom::Point3d.new(@start, 0, 0), Geom::Point3d.new(@start+@side, 0, 0), Geom::Point3d.new(@start+@side, @side, 0), Geom::Point3d.new(@start, @side, 0) ] end end
BTW, the quad walks out of bounds for me and disappears. You can only draw within the model bounds.
Somewhere there is a method that will recalculate the bounds after you add geometry. (Can’t find it right now.)
EDIT: Steve found it (below,) edited example.