<?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: how to generate arched entry in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-generate-arched-entry/m-p/1267988#M10928</link>
    <description>&lt;P&gt;As &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/200150"&gt;@DevinLavigne&lt;/a&gt;&amp;nbsp;said, inserting a 3D asset for the arch is the easiest way.&amp;nbsp; I would also recommend this.&lt;/P&gt;&lt;P&gt;But, if you really want to make it in cga, here's one way you could do it using &lt;FONT face="courier new,courier"&gt;extrude(world.up.flatTop, Height)&lt;/FONT&gt;. This code does not include the top face when it aligns perfectly with the top of the arch since it looks like you don't need it in your example. However, if you want to add that face on top, then uncomment the code for &lt;FONT face="courier new,courier"&gt;CreateTopArchFace&lt;/FONT&gt; which is commented out below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;@Order(1)
@Range(min=0, max=20, stepsize=1, restricted=false)
attr Height = 10

@Order(2)
@Range(min=0, max=10, stepsize=1, restricted=false)
attr Arch_Height = Height

@Order(3)
@Range(min=3, max=100, stepsize=1, restricted=false)
attr Num_Segments = 16


Generate --&amp;gt;	
	primitiveCylinder(2*Num_Segments)
	r(90, 0, 0)
	s('1, scope.sz, 2*Arch_Height)
	t(0, 0, '-0.5)
	split(z) { ~1: Arch | ~1: NIL }

Arch --&amp;gt;
	comp(f) { front: NIL | side= ArchFaces }
# 	CreateTopArchFace

ArchFaces --&amp;gt;
	extrude(world.up.flatTop, Height)
	
# CreateTopArchFace --&amp;gt;
# 	case Height==Arch_Height:
# 		comp(f) { floor(Num_Segments/2)+2: TopArchFace. }
# 	else:
# 		NIL&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="arch.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/65319iD04B697B98A8C274/image-size/medium?v=v2&amp;amp;px=400" role="button" title="arch.png" alt="arch.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Wed, 15 Mar 2023 13:08:22 GMT</pubDate>
    <dc:creator>CherylLau</dc:creator>
    <dc:date>2023-03-15T13:08:22Z</dc:date>
    <item>
      <title>how to generate arched entry</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-generate-arched-entry/m-p/1222705#M10700</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;how to generate the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;arched entry like figure1?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i used&amp;nbsp;&lt;STRONG&gt;extrude(world.up.flatTop, archeight) , &lt;/STRONG&gt;b&lt;/SPAN&gt;ut can't generate an arch with the top on the same level(figure 2)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1925b049d729e718749a7876b2d87ce.jpg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53799i635DD6A03545AF55/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1925b049d729e718749a7876b2d87ce.jpg" alt="1925b049d729e718749a7876b2d87ce.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="b982801ad2046c95c9fa8d980047161.jpg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53800i4D0515A681473A20/image-size/medium?v=v2&amp;amp;px=400" role="button" title="b982801ad2046c95c9fa8d980047161.jpg" alt="b982801ad2046c95c9fa8d980047161.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 04:37:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-generate-arched-entry/m-p/1222705#M10700</guid>
      <dc:creator>fanfanwei</dc:creator>
      <dc:date>2022-10-18T04:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to generate arched entry</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-generate-arched-entry/m-p/1223906#M10707</link>
      <description>&lt;P&gt;I can think of a few ways to build this arch in CGA but I would say having a simple 3D asset you can bring in with an i() operation would be way easier to fit into place.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 17:10:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-generate-arched-entry/m-p/1223906#M10707</guid>
      <dc:creator>DevinLavigne</dc:creator>
      <dc:date>2022-10-20T17:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to generate arched entry</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-generate-arched-entry/m-p/1267988#M10928</link>
      <description>&lt;P&gt;As &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/200150"&gt;@DevinLavigne&lt;/a&gt;&amp;nbsp;said, inserting a 3D asset for the arch is the easiest way.&amp;nbsp; I would also recommend this.&lt;/P&gt;&lt;P&gt;But, if you really want to make it in cga, here's one way you could do it using &lt;FONT face="courier new,courier"&gt;extrude(world.up.flatTop, Height)&lt;/FONT&gt;. This code does not include the top face when it aligns perfectly with the top of the arch since it looks like you don't need it in your example. However, if you want to add that face on top, then uncomment the code for &lt;FONT face="courier new,courier"&gt;CreateTopArchFace&lt;/FONT&gt; which is commented out below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;@Order(1)
@Range(min=0, max=20, stepsize=1, restricted=false)
attr Height = 10

@Order(2)
@Range(min=0, max=10, stepsize=1, restricted=false)
attr Arch_Height = Height

@Order(3)
@Range(min=3, max=100, stepsize=1, restricted=false)
attr Num_Segments = 16


Generate --&amp;gt;	
	primitiveCylinder(2*Num_Segments)
	r(90, 0, 0)
	s('1, scope.sz, 2*Arch_Height)
	t(0, 0, '-0.5)
	split(z) { ~1: Arch | ~1: NIL }

Arch --&amp;gt;
	comp(f) { front: NIL | side= ArchFaces }
# 	CreateTopArchFace

ArchFaces --&amp;gt;
	extrude(world.up.flatTop, Height)
	
# CreateTopArchFace --&amp;gt;
# 	case Height==Arch_Height:
# 		comp(f) { floor(Num_Segments/2)+2: TopArchFace. }
# 	else:
# 		NIL&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="arch.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/65319iD04B697B98A8C274/image-size/medium?v=v2&amp;amp;px=400" role="button" title="arch.png" alt="arch.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 13:08:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-generate-arched-entry/m-p/1267988#M10928</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2023-03-15T13:08:22Z</dc:date>
    </item>
  </channel>
</rss>

