Hi Guys,
I try to pushpull faces of a building then transform them, so to create certain scaffolding spaces. My scripts works well so far to find the walls to be scaffolded and create the basic space properly in the UI. However, it seem that that in the code there is some kind of “lag” and my entities are not the ones which were transformed.
The purple spaces are the correct ones which were made by the below code:
group = entities.add_group
group.name = "Scaffolding_space:#{i.persistent_id}"
face = group.entities.add_face i.vertices
face.pushpull(1.0.m, true)
dist = 0.3.m
move_by = i.normal.to_a.collect { |n| n * dist }
p move_by
moving_trans = Geom::Transformation.translation(move_by)
group.transformation = moving_trans
group.material = Sketchup::Color.new("Plum")
all_scaffolding_spaces << group
The problem comes from the last row. Later in my codes I want to use those entities, so the group which were transformed. I try to find the the end of the scaffolding spaces to do further operation on them. (i.e managing the corners, etc.) But as you may see on the screenshot my other scripts finds a strange face. For me it seems that it finds the face of the “un-transformed” face of that group. Does it make sense? …Can it be a certain lag which might be due to the time of the operation of the transformation? So I am actually pushing the un-transformed group entities into the array of all_scaffolding_spaces
?
Thank you in advance.