<?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 CGA Strategies for Dealing with Irregular Shaped Lots in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/cga-strategies-for-dealing-with-irregular-shaped/m-p/1686741#M11612</link>
    <description>&lt;P&gt;Hello, looking to see if anyone has any example CGA scripts or strategies for dealing with irregularly shaped parcels.&lt;/P&gt;&lt;P&gt;I have a few examples where I have a simple CGA rule applied to static lot shapes that show the different setback areas and a build area using innerRectangle(). All of the lots shown would be low density residential with single detached homes.&lt;/P&gt;&lt;P&gt;The following examples have been included:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="35.93155893536122%"&gt;Example A Pie shaped lot&lt;/TD&gt;&lt;TD width="64.06844106463879%"&gt;The build area (green) is being generated towards the rear of the lot (orange) instead of towards the front (red).&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="35.93155893536122%"&gt;Example B - Reverse Pie Shaped Lot&lt;/TD&gt;&lt;TD width="64.06844106463879%"&gt;The build area (green) is in an acceptable position, but no rear setback (orange) has been generated.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="35.93155893536122%"&gt;Example C - Triangular Shaped Lot&lt;/TD&gt;&lt;TD width="64.06844106463879%"&gt;The build area (green) is in an acceptable position, but only a single side setback (blue) has been generated and the generated rear setback (orange) does not meet the rear property line definition in the bylaw I am working with.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="35.93155893536122%"&gt;Example D - Rear Property Line Definition&lt;/TD&gt;&lt;TD width="64.06844106463879%"&gt;This example shows the wording for the rear property line definition and provides and example of the rear setback (orange) i am hoping to achieve through CGA.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally I am looking to see if it is possible to use CGA to:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Have the build area shape (green) generated from innerRectangle() always be adjacent and parallel to the front setback (red).&lt;UL class="lia-list-style-type-circle"&gt;&lt;LI&gt;Is innerRectangle() the best operation to use for my use case?&lt;/LI&gt;&lt;LI&gt;Would I be better off inserting primitive shapes to generate required building masses?&lt;/LI&gt;&lt;LI&gt;Any other thoughts or suggestions are welcome!&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Generate a pseudo rear property line that is used to generate the rear setback based on the rear setback definition provided in Example D.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;For reference, here is the CGA script I am using on the shapes:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;version "2025.0"

Lot --&amp;gt;
	setback (3) {street.front = Front | remainder :
		setback (7.5) {street.back = Back | remainder :
			setback (1.2) {street.left = Side | remainder :
				setback (1.2) {street.right = Side | remainder :
					buildArea}}}}

buildArea --&amp;gt;
	innerRectangle(scope) {shape : FinalBuildArea | remainder = Color}

FinalBuildArea --&amp;gt;
	color("#37BC7D") # Green

Front --&amp;gt;
	color("#E7180B") # Red
	
Back --&amp;gt;
	color("#FFB93B") # Orange
	
Side --&amp;gt;
	color("#155DFC") # Blue

Color --&amp;gt;
	color(0.75,0.75,0.75)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Feb 2026 20:03:37 GMT</pubDate>
    <dc:creator>DJ_GIS</dc:creator>
    <dc:date>2026-02-25T20:03:37Z</dc:date>
    <item>
      <title>CGA Strategies for Dealing with Irregular Shaped Lots</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cga-strategies-for-dealing-with-irregular-shaped/m-p/1686741#M11612</link>
      <description>&lt;P&gt;Hello, looking to see if anyone has any example CGA scripts or strategies for dealing with irregularly shaped parcels.&lt;/P&gt;&lt;P&gt;I have a few examples where I have a simple CGA rule applied to static lot shapes that show the different setback areas and a build area using innerRectangle(). All of the lots shown would be low density residential with single detached homes.&lt;/P&gt;&lt;P&gt;The following examples have been included:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="35.93155893536122%"&gt;Example A Pie shaped lot&lt;/TD&gt;&lt;TD width="64.06844106463879%"&gt;The build area (green) is being generated towards the rear of the lot (orange) instead of towards the front (red).&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="35.93155893536122%"&gt;Example B - Reverse Pie Shaped Lot&lt;/TD&gt;&lt;TD width="64.06844106463879%"&gt;The build area (green) is in an acceptable position, but no rear setback (orange) has been generated.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="35.93155893536122%"&gt;Example C - Triangular Shaped Lot&lt;/TD&gt;&lt;TD width="64.06844106463879%"&gt;The build area (green) is in an acceptable position, but only a single side setback (blue) has been generated and the generated rear setback (orange) does not meet the rear property line definition in the bylaw I am working with.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="35.93155893536122%"&gt;Example D - Rear Property Line Definition&lt;/TD&gt;&lt;TD width="64.06844106463879%"&gt;This example shows the wording for the rear property line definition and provides and example of the rear setback (orange) i am hoping to achieve through CGA.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally I am looking to see if it is possible to use CGA to:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Have the build area shape (green) generated from innerRectangle() always be adjacent and parallel to the front setback (red).&lt;UL class="lia-list-style-type-circle"&gt;&lt;LI&gt;Is innerRectangle() the best operation to use for my use case?&lt;/LI&gt;&lt;LI&gt;Would I be better off inserting primitive shapes to generate required building masses?&lt;/LI&gt;&lt;LI&gt;Any other thoughts or suggestions are welcome!&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Generate a pseudo rear property line that is used to generate the rear setback based on the rear setback definition provided in Example D.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;For reference, here is the CGA script I am using on the shapes:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;version "2025.0"

Lot --&amp;gt;
	setback (3) {street.front = Front | remainder :
		setback (7.5) {street.back = Back | remainder :
			setback (1.2) {street.left = Side | remainder :
				setback (1.2) {street.right = Side | remainder :
					buildArea}}}}

buildArea --&amp;gt;
	innerRectangle(scope) {shape : FinalBuildArea | remainder = Color}

FinalBuildArea --&amp;gt;
	color("#37BC7D") # Green

Front --&amp;gt;
	color("#E7180B") # Red
	
Back --&amp;gt;
	color("#FFB93B") # Orange
	
Side --&amp;gt;
	color("#155DFC") # Blue

Color --&amp;gt;
	color(0.75,0.75,0.75)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2026 20:03:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cga-strategies-for-dealing-with-irregular-shaped/m-p/1686741#M11612</guid>
      <dc:creator>DJ_GIS</dc:creator>
      <dc:date>2026-02-25T20:03:37Z</dc:date>
    </item>
  </channel>
</rss>

