<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: pedestrian + parking spots in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/pedestrian-parking-spots/m-p/349542#M4798</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just modified the Street Construction.cga to achieve this. I've just used footpaths and parking spaces, but you can modify some of the textures to add the grass too pretty easily:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
# -----------------------
#Carparks Attributes
@Group("Carpark",3) @Order(1) 
attr carparks = false

@Group("Carpark") @Order(2) 
attr carparkwidth = 2.5

Sidewalk --&amp;gt; 
 alignScopeToAxes(y) 
 BridgeSide
 SidewalkWithKerbs 
 t(0, Sidewalk_height ,0)
 SidewalkLamps SidewalkTrees SidewalkProps People TrafficLights

SidewalkWithKerbs --&amp;gt; 
 case carparks == true :
 comp(f){ top&amp;nbsp;&amp;nbsp; : split(y){ Sidewalk_height : CarparkKerbs | ~1 : CarparkPavement } }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //| side : split(u,unitSpace,0){Crosswalk_width*2 : CarparkKerbs | ~1 : CarparkPavement | Crosswalk_width*2 : CarparkKerbs} }
else: 
 extrude(world.y, Sidewalk_height )
 comp(f){ top : split(y){ Sidewalk_height : Kerbs | ~1 : CarparkPavement }|
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; side : Kerbs}

CarparkKerbs--&amp;gt;&amp;nbsp; 
 case carparks == true: 
&amp;nbsp; split(x){Crosswalk_width*2 : extrude(world.y, Sidewalk_height )Kerbs
&amp;nbsp; | ~1 : t(0,carparkwidth,0) extrude(Sidewalk_height)Kerbs | Crosswalk_width*2 : extrude(world.y, Sidewalk_height )Kerbs}
&amp;nbsp; setupProjection(0,scope.xy,~1.1,'1) projectUV(0) 
&amp;nbsp; texture(kerb_tex)
 else:Kerbs

CarparkPavement --&amp;gt;
 case carparks == true : 
&amp;nbsp;&amp;nbsp; split(u,unitSpace,0){ Crosswalk_width*2 : extrude(world.y, Sidewalk_height )Pavement 
&amp;nbsp;&amp;nbsp; | t(0,-0.2,0) split(v,unitSpace,0)
&amp;nbsp;&amp;nbsp; { carparkwidth : split(u,unitSpace,0){0.2 : extrude(Sidewalk_height)Kerbs 
&amp;nbsp;&amp;nbsp; |{ ~5 : Asphalt&amp;nbsp; | { ~0.1:&amp;nbsp; WhiteLine | ~5 : Asphalt }* |0.2 : extrude(Sidewalk_height)Kerbs} } 
&amp;nbsp;&amp;nbsp; |&amp;nbsp; ~1 : t(0,0.2,0) extrude(world.y, Sidewalk_height )Pavement }
&amp;nbsp;&amp;nbsp; | Crosswalk_width*2: extrude(world.y, Sidewalk_height )Pavement }
&amp;nbsp; else: Pavement

WhiteLine--&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
 color(White)

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe that was all the code I modified, but I might have missed something out...gave me the option to turn on and off whether I had a carpark along the street though, but I've attached an image of the sort of thing it gives me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;hope that helps!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 16:26:52 GMT</pubDate>
    <dc:creator>JoanneO_Brien</dc:creator>
    <dc:date>2021-12-11T16:26:52Z</dc:date>
    <item>
      <title>pedestrian + parking spots</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/pedestrian-parking-spots/m-p/349540#M4796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to create a pedestrian street along with the street network with a little modification.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;what i need is parking spots for cars, as well as green areas with pedestrians.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I attached an image as a reference for what i am aiming for. (It is marked in red)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help ?!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 10:16:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/pedestrian-parking-spots/m-p/349540#M4796</guid>
      <dc:creator>ziadfilfili</dc:creator>
      <dc:date>2013-02-19T10:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: pedestrian + parking spots</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/pedestrian-parking-spots/m-p/349541#M4797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd create a CGA rule which takes the Sidewalk shape, then splits off a parking strip first which is refined with green spots in between. The rest of the shape is then considered as pedestrian area, textured and people added.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if you need a start help with how to code this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;M.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 12:20:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/pedestrian-parking-spots/m-p/349541#M4797</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2013-02-19T12:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: pedestrian + parking spots</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/pedestrian-parking-spots/m-p/349542#M4798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just modified the Street Construction.cga to achieve this. I've just used footpaths and parking spaces, but you can modify some of the textures to add the grass too pretty easily:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
# -----------------------
#Carparks Attributes
@Group("Carpark",3) @Order(1) 
attr carparks = false

@Group("Carpark") @Order(2) 
attr carparkwidth = 2.5

Sidewalk --&amp;gt; 
 alignScopeToAxes(y) 
 BridgeSide
 SidewalkWithKerbs 
 t(0, Sidewalk_height ,0)
 SidewalkLamps SidewalkTrees SidewalkProps People TrafficLights

SidewalkWithKerbs --&amp;gt; 
 case carparks == true :
 comp(f){ top&amp;nbsp;&amp;nbsp; : split(y){ Sidewalk_height : CarparkKerbs | ~1 : CarparkPavement } }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //| side : split(u,unitSpace,0){Crosswalk_width*2 : CarparkKerbs | ~1 : CarparkPavement | Crosswalk_width*2 : CarparkKerbs} }
else: 
 extrude(world.y, Sidewalk_height )
 comp(f){ top : split(y){ Sidewalk_height : Kerbs | ~1 : CarparkPavement }|
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; side : Kerbs}

CarparkKerbs--&amp;gt;&amp;nbsp; 
 case carparks == true: 
&amp;nbsp; split(x){Crosswalk_width*2 : extrude(world.y, Sidewalk_height )Kerbs
&amp;nbsp; | ~1 : t(0,carparkwidth,0) extrude(Sidewalk_height)Kerbs | Crosswalk_width*2 : extrude(world.y, Sidewalk_height )Kerbs}
&amp;nbsp; setupProjection(0,scope.xy,~1.1,'1) projectUV(0) 
&amp;nbsp; texture(kerb_tex)
 else:Kerbs

CarparkPavement --&amp;gt;
 case carparks == true : 
&amp;nbsp;&amp;nbsp; split(u,unitSpace,0){ Crosswalk_width*2 : extrude(world.y, Sidewalk_height )Pavement 
&amp;nbsp;&amp;nbsp; | t(0,-0.2,0) split(v,unitSpace,0)
&amp;nbsp;&amp;nbsp; { carparkwidth : split(u,unitSpace,0){0.2 : extrude(Sidewalk_height)Kerbs 
&amp;nbsp;&amp;nbsp; |{ ~5 : Asphalt&amp;nbsp; | { ~0.1:&amp;nbsp; WhiteLine | ~5 : Asphalt }* |0.2 : extrude(Sidewalk_height)Kerbs} } 
&amp;nbsp;&amp;nbsp; |&amp;nbsp; ~1 : t(0,0.2,0) extrude(world.y, Sidewalk_height )Pavement }
&amp;nbsp;&amp;nbsp; | Crosswalk_width*2: extrude(world.y, Sidewalk_height )Pavement }
&amp;nbsp; else: Pavement

WhiteLine--&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
 color(White)

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe that was all the code I modified, but I might have missed something out...gave me the option to turn on and off whether I had a carpark along the street though, but I've attached an image of the sort of thing it gives me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;hope that helps!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:26:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/pedestrian-parking-spots/m-p/349542#M4798</guid>
      <dc:creator>JoanneO_Brien</dc:creator>
      <dc:date>2021-12-11T16:26:52Z</dc:date>
    </item>
  </channel>
</rss>

