幻灯片-CityEngine城市引擎

处理不规则形状地块的CGA策略

 

Hello, looking to see if anyone has any example CGA scripts or strategies for dealing with irregularly shaped parcels.你好,想看看有没有人有处理不规则形状地块的CGA脚本示例或策略。

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.我有几个示例,其中将简单的CGA规则应用于静态地块形状,使用innerRectangle()来显示不同的后退区域和建筑区域。所示的所有地块都将是低密度住宅区,带有独立式独栋住宅。

The following examples have been included:已包含以下示例:

Example A Pie shaped lot 示例A 扇形地块 The build area (green) is being generated towards the rear of the lot (orange) instead of towards the front (red).建筑区域(绿色部分)正在向地块后方(橙色部分)生成,而非前方(红色部分)。
Example B – Reverse Pie Shaped Lot示例B – 反向扇形地块 The build area (green) is in an acceptable position, but no rear setback (orange) has been generated.建筑区域(绿色)的位置是可接受的,但未生成后部退距(橙色)。
Example C – Triangular Shaped Lot 示例C – 三角形地块 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.建筑区域(绿色部分)的位置是可接受的,但只生成了单侧退距(蓝色部分),且生成的后部退距(橙色部分)不符合我正在依据的章程中对后部地产线的定义。
Example D – Rear Property Line Definition示例 D – 后方地块边界定义 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.此示例展示了后部 property 线定义的措辞,并提供了一个我希望通过 CGA 实现的后部退距(橙色)示例。

 

Ideally I am looking to see if it is possible to use CGA to:理想情况下,我想知道是否可以使用CGA来:

  • Have the build area shape (green) generated from innerRectangle() always be adjacent and parallel to the front setback (red).让由innerRectangle()生成的建筑区域形状(绿色)始终与前退缩线(红色)相邻且平行。
    • Is innerRectangle() the best operation to use for my use case?对于我的使用场景,innerRectangle()是最佳操作吗?
    • Would I be better off inserting primitive shapes to generate required building masses?我插入基本形状来生成所需的建筑体量会更好吗?
    • Any other thoughts or suggestions are welcome!欢迎任何其他想法或建议!
  • Generate a pseudo rear property line that is used to generate the rear setback based on the rear setback definition provided in Example D.生成一条虚拟的后部 property 线,该线用于根据示例 D 中提供的后部退距定义来生成后部退距。

For reference, here is the CGA script I am using on the shapes:供参考,以下是我在这些形状上使用的CGA脚本:

 

version "2025.0"

Lot -->
	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 -->
	innerRectangle(scope) {shape : FinalBuildArea | remainder = Color}

FinalBuildArea -->
	color("#37BC7D") # Green

Front -->
	color("#E7180B") # Red
	
Back -->
	color("#FFB93B") # Orange
	
Side -->
	color("#155DFC") # Blue

Color -->
	color(0.75,0.75,0.75)

252008dce520260324083810

58abaa85d020260324083810

a9026e43e820260324083810

b5719e45bc20260324083810

 

请登录后发表评论

    没有回复内容