<?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 Chamfer / bevel the edges of the geometry in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/chamfer-bevel-the-edges-of-the-geometry/m-p/291660#M4004</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To make my building geometry look a bit more realistic, I'd like to chamfer / bevel all the edges in the model.&amp;nbsp; This will just soften them slightly, and make them look just a bit more realistic when rendered... because the light reflects differently off chamfered corners, and few real-world objects have knife-sharp edges.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a simple way to do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suspect it involves comp(e), but I'm not sure after that....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jun 2012 15:32:48 GMT</pubDate>
    <dc:creator>DavidOConnor</dc:creator>
    <dc:date>2012-06-14T15:32:48Z</dc:date>
    <item>
      <title>Chamfer / bevel the edges of the geometry</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/chamfer-bevel-the-edges-of-the-geometry/m-p/291660#M4004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To make my building geometry look a bit more realistic, I'd like to chamfer / bevel all the edges in the model.&amp;nbsp; This will just soften them slightly, and make them look just a bit more realistic when rendered... because the light reflects differently off chamfered corners, and few real-world objects have knife-sharp edges.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a simple way to do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suspect it involves comp(e), but I'm not sure after that....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 15:32:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/chamfer-bevel-the-edges-of-the-geometry/m-p/291660#M4004</guid>
      <dc:creator>DavidOConnor</dc:creator>
      <dc:date>2012-06-14T15:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Chamfer / bevel the edges of the geometry</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/chamfer-bevel-the-edges-of-the-geometry/m-p/291661#M4005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Lot --&amp;gt;&amp;nbsp; extrude(10)&amp;nbsp; comp(f) {side : Bevel}&amp;nbsp; Bevel --&amp;gt;&amp;nbsp; roofGable(50,0,0,true) # use the vertical edge = rotate roof // angle must be larger than 45 degs because of following comp(f)&amp;nbsp;&amp;nbsp; split(y){0.005: comp(f) {top : color(1,0,0) X. | all : X.}&amp;nbsp; | ~1 : NIL}&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 11:58:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/chamfer-bevel-the-edges-of-the-geometry/m-p/291661#M4005</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-06-15T11:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Chamfer / bevel the edges of the geometry</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/chamfer-bevel-the-edges-of-the-geometry/m-p/291662#M4006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Matthias, excellent help &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I played around with your suggestion, and this is what I came up with to fit my needs.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I share it here (liberally commented) because someone less experienced might find it useful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Lot --&amp;gt;
 innerRect&amp;nbsp;&amp;nbsp;&amp;nbsp; // ensure the lot is a square, for simplicity
 alignScopeToAxes(y)&amp;nbsp;&amp;nbsp; // these two lines ensure that
 s('1,0,'1)&amp;nbsp;&amp;nbsp;&amp;nbsp; // the lot is extruded vertically (world axes, not the local axes)
 extrude(10)
 comp(f) {top: Bevel | side : Bevel} // splits out the individual faces

Bevel --&amp;gt;
 roofHip(45)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // each face becomes a hip roof, relative to the local axes 
 split(y){.1: comp(f) {bottom: NIL | all : Wall }}&amp;nbsp; // removes the bottom face (for efficiency)

Wall --&amp;gt;
 color(0,5,0)&amp;nbsp;&amp;nbsp;&amp;nbsp; // give it a pretty color :)
 Done.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // finished
 &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]15266[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:03:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/chamfer-bevel-the-edges-of-the-geometry/m-p/291662#M4006</guid>
      <dc:creator>DavidOConnor</dc:creator>
      <dc:date>2021-12-11T14:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Chamfer / bevel the edges of the geometry</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/chamfer-bevel-the-edges-of-the-geometry/m-p/291663#M4007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hey !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;glad it works !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for sharing ! :cool:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 15:52:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/chamfer-bevel-the-edges-of-the-geometry/m-p/291663#M4007</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-06-18T15:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Chamfer / bevel the edges of the geometry</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/chamfer-bevel-the-edges-of-the-geometry/m-p/291664#M4008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;doh, I was implementing bevelled edges in LOD 0 of my city, and I realized that I forgot to take out the extra bit:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Lot --&amp;gt;
 innerRect&amp;nbsp;&amp;nbsp;&amp;nbsp; // ensure the lot is a square, for simplicity
 alignScopeToAxes(y)&amp;nbsp;&amp;nbsp; // these two lines ensure that
 s('1,0,'1)&amp;nbsp;&amp;nbsp;&amp;nbsp; // the lot is extruded vertically (world axes, not the local axes)
 extrude(10)
 comp(f) {top: Bevel | side : Bevel} // splits out the individual faces

Bevel --&amp;gt;
 roofHip(45)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // each face becomes a hip roof,
 split(y){.1: comp(f) {bottom: NIL | all : Wall }&amp;nbsp; | ~1:NIL}&amp;nbsp; // removes the bottom face (for efficiency), then removes the excess

Wall --&amp;gt;
 color(0,5,0)&amp;nbsp;&amp;nbsp;&amp;nbsp; // give it a pretty color :)
 Done.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // finished&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:03:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/chamfer-bevel-the-edges-of-the-geometry/m-p/291664#M4008</guid>
      <dc:creator>DavidOConnor</dc:creator>
      <dc:date>2021-12-11T14:03:19Z</dc:date>
    </item>
  </channel>
</rss>

