openstudiocore/ruby/openstudio/sketchup_plugin/lib/interfaces/SubSurface.rb
# Error checks, finalization, or cleanup needed after the entity is drawn.

Error checks, finalization, or cleanup needed after the entity is drawn.
Error checks finalization or cleanup needed after the entity is drawn .
def confirm_entity
      Plugin.log(OpenStudio::Trace, "#{current_method_name}")
      return(super)
    end
def confirm_entity Plugin . log ( OpenStudio :: Trace , "#{current_method_name}" ) return ( super ) end
Error checks, finalization, or cleanup needed after the entity is drawn.
Error checks finalization or cleanup needed after the entity is drawn .
# Check for overlapping sub surfaces in the same space.
 # Check for sub surfaces not on their base surface.
 # Check for more than 4 vertices.  subdivide if necessary.
 # if check really fails, might be able to call Sketchup.undo.
 #points = @entity.full_polygon.reduce.points
 #if (points.length > 4)
 #puts "Oops!  Too many vertices!"
 # Draw an edge from the first vertex to the 4th
 #@entity.parent.entities.add_line(points[0], points[3])
 #Sketchup.undo  # oh yeah can't undo because observer has already assigned some things.
 #return(false)
 #end
