Hi,Here is a rule for this:Chrisversion "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.
[ATTACH=CONFIG]33817[/ATTACH]