version "2013.1" HouseFootprint --> extrude(8) comp(f) { top: Gable | side: Facade. # Period stops execution, instead of calling another rule # and names the final shape. } Gable --> roofGable(30) comp(f) { # Send slanted roof shapes to two rules here: aslant: RoofToTexture SolarPanelMount | side: RoofFacade. } SolarPanelMount --> # Use comp.index == 0 or 1 to identify face. # I first tried using geometry.isOriented(world.south). case comp.index == 1: split(x) { '0.1 : NIL | '0.8 : split(y) { '0.1 : NIL | '0.8 : SolarPanels | '0.1 : NIL } | '0.1 : NIL } else: NIL SolarPanels --> t(0,0,1) color(1,0,0) # Code here to make this shape into panels. SolarPanelsTextured. RoofToTexture --> # Texturing Code Here TexturedRoof.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.