[REQ] Selectect Flat faces from top view - Done!
-
If not yet existing
Select horizontal "Flat" faces from view top
Clic image for zoom

-
m=Sketchup.active_model;s=m.selection;s.clear;m.active_entities.each{|e|s.add(e)if e.is_a?(Sketchup;;Face) && e.normal==Z_AXIS} -
Bravo!

Works like a charm!
Does it possible to make the same for faces from top view not flat but only "inclined" ? (not vertical)
All that is for make some elements of roof

Thanks by advance for the efforts!

-
@unknownuser said:
Bravo!

Works like a charm!
Does it possible to make the same for faces from top view not flat but only "inclined" ? (not vertical)
All that is for make some elements of roof

Thanks by advance for the efforts!
[attachment=0:1bfv650d]<!-- ia0 -->faces.jpg<!-- ia0 -->[/attachment:1bfv650d]
m=Sketchup.active_model;s=m.selection;s.clear;m.active_entities.each{|e|s.add(e)if e.is_a?(Sketchup;;Face) && e.normal.z>0 && e.normal.z!=1} -
Perfect!

Always amazing that a such cryptic language can make in such few words!

Bravo again!

These 2 punchy program's line can answer at some questions of view from the sky!


Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement