Sorry, I just intended to show that there is an array, array in real case is not empty.
I have some kind of roof tiles, which are groups of pushpulled face.
And I need to delete some roof tiles which are situated on some face, but I did not succeed with that.
But I noticed, when I explode all groups of tiles, when I triple click on external face, I have in selection all tiles which I want to save. Here is a screen:
And if I use external_face.all_connected after explode process, I get elements which I don’t need to erase. So, because I don’t know how to see if an tiles entity is connected to a face, I iterate through all items to see want I need to delete.
I wrote this code, and it worked, but I surely understand, it’s stupid as hell:) but works.
exploded_tiles_array = 
valids = max_face.all_connected
entities = tile.grep(Sketchup::Entity)
need_to_delete = true
if entity != nil && entity.valid?
for i in 0..valids.length()
if entity == valids[i]
need_to_delete = false
if !(e.is_a? Sketchup::Vertex) && !(e.is_a? Sketchup::Loop) && !(e.is_a? Sketchup::EdgeUse) && (e.valid?)
And I get this after that code:
I also tried to play with classify_point on bottom faces of tiles. but I don’t know why I didn’t get results I expected, just some faces showed that are on vertex. Maybe I should play more with that.