<?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: Need help to make 3D hollow circular culvert using Rule package in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/need-help-to-make-3d-hollow-circular-culvert-using/m-p/1590018#M11523</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/884791"&gt;@bhusalshishir&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is CGA code that creates a &lt;A href="https://doc.arcgis.com/en/cityengine/latest/cga/cga-primitive-disk.htm" target="_self"&gt;primitiveDisk&lt;/A&gt;&amp;nbsp;and then uses the &lt;A href="https://doc.arcgis.com/en/cityengine/latest/cga/cga-offset.htm" target="_self"&gt;offset operation&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;to hollow it out.&lt;BR /&gt;Then the&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/cityengine/latest/cga/cga-extrude.htm" target="_self"&gt;extrude operation&lt;/A&gt;&amp;nbsp;gets applied on the annulus to form a culvert.&amp;nbsp;Finally, the&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/cityengine/latest/cga/cga-set-normals.htm" target="_self"&gt;setNormals operation&lt;/A&gt; is used to set the normals of the inner and outer mantle to soft.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;version "2024.1"

@Description("Inner diameter") @Distance @Range(min=0.1, max=5)
attr diameter = 1
@Description("Culvert length") @Distance @Range(min=0.1, max=20)
attr length = 2
@Description("Wall thickness") @Distance @Range(min=0.1, max=1)
attr thickness = 0.1
@Description("Number of subdivisions of the outer mantle")
attr sides = min(128,max(16,floor(8*diameter)*4))

@StartRule
Culvert --&amp;gt; Annulus

Annulus --&amp;gt;
	primitiveDisk(sides, diameter+thickness)
	offset(-thickness)
	comp(f) { border = Extrude}
	
Extrude --&amp;gt;
	extrude (length)
	comp(f) { side = setNormals(soft) Culvert. | all : Culvert. }
	&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-center" image-alt="ThomasFuchs_0-1740663847514.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/126497iADBF800DD41A9C5B/image-size/large?v=v2&amp;amp;px=999" role="button" title="ThomasFuchs_0-1740663847514.png" alt="ThomasFuchs_0-1740663847514.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2025 13:49:43 GMT</pubDate>
    <dc:creator>ThomasFuchs</dc:creator>
    <dc:date>2025-02-27T13:49:43Z</dc:date>
    <item>
      <title>Need help to make 3D hollow circular culvert using Rule package</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/need-help-to-make-3d-hollow-circular-culvert-using/m-p/1589550#M11522</link>
      <description>&lt;P&gt;I want to make a 3D circular culvert in the city engine using the Rule package. I made a solid 3d circular culvert but I want a hollow 3D circular culvert. So someone please help me to complete this task. How can I do this?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 16:57:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/need-help-to-make-3d-hollow-circular-culvert-using/m-p/1589550#M11522</guid>
      <dc:creator>bhusalshishir</dc:creator>
      <dc:date>2025-02-26T16:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to make 3D hollow circular culvert using Rule package</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/need-help-to-make-3d-hollow-circular-culvert-using/m-p/1590018#M11523</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/884791"&gt;@bhusalshishir&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is CGA code that creates a &lt;A href="https://doc.arcgis.com/en/cityengine/latest/cga/cga-primitive-disk.htm" target="_self"&gt;primitiveDisk&lt;/A&gt;&amp;nbsp;and then uses the &lt;A href="https://doc.arcgis.com/en/cityengine/latest/cga/cga-offset.htm" target="_self"&gt;offset operation&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;to hollow it out.&lt;BR /&gt;Then the&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/cityengine/latest/cga/cga-extrude.htm" target="_self"&gt;extrude operation&lt;/A&gt;&amp;nbsp;gets applied on the annulus to form a culvert.&amp;nbsp;Finally, the&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/cityengine/latest/cga/cga-set-normals.htm" target="_self"&gt;setNormals operation&lt;/A&gt; is used to set the normals of the inner and outer mantle to soft.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;version "2024.1"

@Description("Inner diameter") @Distance @Range(min=0.1, max=5)
attr diameter = 1
@Description("Culvert length") @Distance @Range(min=0.1, max=20)
attr length = 2
@Description("Wall thickness") @Distance @Range(min=0.1, max=1)
attr thickness = 0.1
@Description("Number of subdivisions of the outer mantle")
attr sides = min(128,max(16,floor(8*diameter)*4))

@StartRule
Culvert --&amp;gt; Annulus

Annulus --&amp;gt;
	primitiveDisk(sides, diameter+thickness)
	offset(-thickness)
	comp(f) { border = Extrude}
	
Extrude --&amp;gt;
	extrude (length)
	comp(f) { side = setNormals(soft) Culvert. | all : Culvert. }
	&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-center" image-alt="ThomasFuchs_0-1740663847514.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/126497iADBF800DD41A9C5B/image-size/large?v=v2&amp;amp;px=999" role="button" title="ThomasFuchs_0-1740663847514.png" alt="ThomasFuchs_0-1740663847514.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 13:49:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/need-help-to-make-3d-hollow-circular-culvert-using/m-p/1590018#M11523</guid>
      <dc:creator>ThomasFuchs</dc:creator>
      <dc:date>2025-02-27T13:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to make 3D hollow circular culvert using Rule package</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/need-help-to-make-3d-hollow-circular-culvert-using/m-p/1590366#M11525</link>
      <description>&lt;P&gt;Thank you so&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/157103"&gt;@ThomasFuchs&lt;/a&gt;&amp;nbsp;for your help, it means a lot to me. Thank you for your time and assistance.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 21:40:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/need-help-to-make-3d-hollow-circular-culvert-using/m-p/1590366#M11525</guid>
      <dc:creator>bhusalshishir</dc:creator>
      <dc:date>2025-02-27T21:40:31Z</dc:date>
    </item>
  </channel>
</rss>

