<?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: Creating Arches in CE question in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/creating-arches-in-ce-question/m-p/1092661#M10272</link>
    <description>&lt;P&gt;The ESRI Fence code gave me a few new ideas about how to create arches.&amp;nbsp; For the picket fence they manipulate the scope.sy of the horizontal span with some parabolic equations to achieve some unique forms.&amp;nbsp; &amp;nbsp;None using wave functions though.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Aug 2021 12:44:56 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-08-26T12:44:56Z</dc:date>
    <item>
      <title>Creating Arches in CE question</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/creating-arches-in-ce-question/m-p/1092169#M10268</link>
      <description>&lt;P&gt;I've been messing around with equations to create bridge arches but I cannot figure out why one equation will not work in CityEngine.&lt;/P&gt;&lt;P&gt;I've been using Desmos graphing to figure out my equations and you'll see here that I have 3 graphs which I have designed to be similar lengths and heights:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;upward parabola&lt;/LI&gt;&lt;LI&gt;downward parabola&lt;/LI&gt;&lt;LI&gt;sine wave&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Desmos Graphs.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/21648i42F5ABA7CAA1AF1A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Desmos Graphs.PNG" alt="Desmos Graphs.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can successfully get the two parabolic functions to work under an extrude but I cannot get the sine wave to work under the extrude.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;@Hidden
attr segment = 1
@Hidden
attr BridgeSpanL = geometry.du(0,unitSpace)
const Pi = 3.14159
const Bx = Pi/BridgeSpanL

@StartRule
BridgeSpan--&amp;gt;
      set(BridgeSpanL, geometry.du(0,unitSpace))
      split(u,unitSpace,0){~segment: BridgeArch(BridgeSpanL,split.index)}*


BridgeArch(BridgeSpanL,n)--&amp;gt;
	extrude(
			//-(pow(split.index,2)/BridgeSpanL)+split.index  //Parabolic Curve for typical Arch Bridge
			//pow((split.index-(BridgeSpanL/2)),2)/BridgeSpanL  // Inverse Parabolic Curve
			//(BridgeSpanL/4)*(sin((Pi/BridgeSpanL)*split.index))
			(BridgeSpanL/4)*sin(Bx*split.index)
			)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although I can get a sine or cosine wave to work, I cannot get the period/frequency of the sine wave to behave as I expect under the function.&amp;nbsp; If I could, I think I could create some more interesting arch patterns.&lt;/P&gt;&lt;P&gt;Is it my code, my math (probably), or is this a bug or a limitation of the extrude?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Parabolic Arch" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/21651iCA49C21DC3D9EF37/image-size/large?v=v2&amp;amp;px=999" role="button" title="Parabolic Curve.PNG" alt="Parabolic Arch" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Parabolic Arch&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Above:&amp;nbsp; Parabolic equation working.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Flat Sine Wave" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/21652i5980A351FE60531C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Flat Sine Wave.PNG" alt="Flat Sine Wave" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Flat Sine Wave&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Above:&amp;nbsp; Sine wave equation not working.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sine wave sort of working.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/21655i8FD37B62A59F5B50/image-size/large?v=v2&amp;amp;px=999" role="button" title="sine wave sort of working.PNG" alt="sine wave sort of working.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Above:&amp;nbsp; Sine wave sort of working but without the a frequency parameter (B&lt;SPAN&gt;π or 1/Bπ)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Also, does Pi&amp;nbsp;&lt;SPAN&gt;π&lt;/SPAN&gt; have a built-in for CityEngine?&amp;nbsp; &amp;nbsp;I feel like it should.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 12:43:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/creating-arches-in-ce-question/m-p/1092169#M10268</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-08-25T12:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Arches in CE question</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/creating-arches-in-ce-question/m-p/1092661#M10272</link>
      <description>&lt;P&gt;The ESRI Fence code gave me a few new ideas about how to create arches.&amp;nbsp; For the picket fence they manipulate the scope.sy of the horizontal span with some parabolic equations to achieve some unique forms.&amp;nbsp; &amp;nbsp;None using wave functions though.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 12:44:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/creating-arches-in-ce-question/m-p/1092661#M10272</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-08-26T12:44:56Z</dc:date>
    </item>
  </channel>
</rss>

