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.
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.