Solved! Go to Solution.
attr streetSetbackDistance = 5 attr wing_1_width = 50 attr wing_2_width = 24 attr wing_3_width = 12 @StartRule Lot --> StreetSetbacks StreetSetbacks --> setback(streetSetbackDistance) { all : ParcelBorder | remainder : ParcelInner } ParcelInner --> alignScopeToAxes() # align to grid ( north, south, west, east ) setback(wing_1_width) { back : Wing1 | remainder : # setback relative to now oriented scope. namely, back, front, right. setback(wing_2_width) { front : Wing2 | remainder : setback(wing_3_width) { right : Wing3 | remainder : Yard } } } ParcelBorder --> color(.7,.7,.7) Wing1 --> color(.2,.2,.9) Wing2 --> color(.9,.6,.2) Wing3 --> color(.9,.2,.2) Yard --> color(.7,.9,.7)
Lot --> alignScopeToGeometry(yUp, any, world.lowest) sublot sublot-->setback(10) { all : setbacks | remainder : footprint } setbacks --> color("#808080") footprint --> split(z) { 12 : mass |\1: wing |20: mass2 } wing --> split(x) { 12 : mass |\1: inner } mass --> extrude(world.y, 24) Shape mass2 --> extrude(world.y, 50) grey grey --> color("#E0E0E0") inner --> color("#CAF497")
alignScopeToGeometry(yUp, any, world.lowest)
alignScopeToGeometry(yUp, any, longest)
Lot --> sublot sublot-->setback(10) { all : setbacks | remainder : footprint } setbacks --> color("#C0C0C0") footprint --> split(z) { 12 : mass |\1: midpart |20: mass2 } midpart --> split(x) { 12 : mass3 |\1: inner } mass --> extrude(world.y, 24) mass1color mass2 --> extrude(world.y, 50) mass2color mass1color --> color("#FF8000") mass3 --> extrude(world.y, 12) mass3color mass2color --> color("#0000FF") mass3color --> color("#FF0080") inner --> color("#CAF497")
Lot --> alignScopeToGeometry(yUp, any, world.lowset) sublot sublot-->setback(10) { all : setbacks | remainder : footprint } setbacks --> color("#C0C0C0") footprint --> split(z) { 12 : mass |\1: midpart |20: mass2 } midpart --> split(x) { 12 : mass3 |\1: inner } mass --> extrude(world.y, 24) mass1color mass2 --> extrude(world.y, 50) mass2color mass1color --> color("#FF8000") mass3 --> extrude(world.y, 12) mass3color mass2color --> color("#0000FF") mass3color --> color("#FF0080") inner --> color("#CAF497")
Lot --> . alignScopeToGeometry(yUp, any, longest) sublot sublot-->setback(10) { all : setbacks | remainder : footprint } setbacks --> color("#C0C0C0") footprint --> split(z) { 12 : mass |\1: midpart |20: mass2 } midpart --> split(x) { 12 : mass3 |\1: inner } mass --> extrude(world.y, 24) mass1color mass2 --> extrude(world.y, 50) mass2color mass1color --> color("#FF8000") mass3 --> extrude(world.y, 12) mass3color mass2color --> color("#0000FF") mass3color --> color("#FF0080") inner --> color("#CAF497")
sorry, I don't seem to follow.
can you make a very clear text of the rules of what part should be aligned where ?
you say the 'grey part' must be aligned to the 'red line'. but all parts are grey ..
maybe use colors for each building wing .. and tell me how the red line is actually defined... ok ?
sry .. matt .. 😮
attr streetSetbackDistance = 5 attr wing_1_width = 50 attr wing_2_width = 24 attr wing_3_width = 12 @StartRule Lot --> StreetSetbacks StreetSetbacks --> setback(streetSetbackDistance) { all : ParcelBorder | remainder : ParcelInner } ParcelInner --> alignScopeToAxes() # align to grid ( north, south, west, east ) setback(wing_1_width) { back : Wing1 | remainder : # setback relative to now oriented scope. namely, back, front, right. setback(wing_2_width) { front : Wing2 | remainder : setback(wing_3_width) { right : Wing3 | remainder : Yard } } } ParcelBorder --> color(.7,.7,.7) Wing1 --> color(.2,.2,.9) Wing2 --> color(.9,.6,.2) Wing3 --> color(.9,.2,.2) Yard --> color(.7,.9,.7)