<?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: Coloring of shape edges using CGA in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/coloring-of-shape-edges-using-cga/m-p/329885#M4542</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, I just fixed on it for a minute. I simplified it to be more readable. Now you have a start rule, and that rule sends the border to a new rule, and the inside shape to a new rule. Just easier to read/debug that way. Face clashing effect should be gone now. I also reversed the set opacity part, so that increasing that attribute increases the transparency (since opacity is the opposite of transparency):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set(material.opacity, 1-Transparency)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CGA file is attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Sep 2015 22:16:46 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2015-09-15T22:16:46Z</dc:date>
    <item>
      <title>Coloring of shape edges using CGA</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/coloring-of-shape-edges-using-cga/m-p/329878#M4535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to color edges (border and interior) of a planar shape layer (see screenshot) in CE using CGA. Ultimately, it would be great if colors could be chosen for the background (faces?) color as well as the outlines (edges?). I have been looking into the comp(Operation) option to select out the edges and color them. If I use: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set(material.opacity, Transparency)&lt;/P&gt;&lt;P&gt;color (...) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...then I can change the color/transparency of the entire shape, but the individual shape outlines are not visible and do not have a distinct color when I export the models as .3ws. I would like to be able to designate colors for both the outline and shape in CE prior to the export. Any suggestions would be very helpful as I am new to CE/CGA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached my current CGA code as well as a snip of the layer I am working with. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;version "2015.1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attr Fill_Color = "#FFFFF"&lt;/P&gt;&lt;P&gt;attr Outline_Color = "#000000"&lt;/P&gt;&lt;P&gt;attr Transparency = 0.9&lt;/P&gt;&lt;P&gt;@StartRule&lt;/P&gt;&lt;P&gt;Shape --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set(material.opacity, Transparency)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; comp(e) {all: color(Outline_Color)&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; comp(f) {all: color(Fill_Color)&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;X.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 17:57:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/coloring-of-shape-edges-using-cga/m-p/329878#M4535</guid>
      <dc:creator>TessOldemeyer</dc:creator>
      <dc:date>2015-09-15T17:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring of shape edges using CGA</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/coloring-of-shape-edges-using-cga/m-p/329879#M4536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the CGA operation called offset, together with comp. Send individual faces to a rule like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AddOutline --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; offset(-0.02) # thickness of your border. Negative value offsets inwards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; comp( f ) {border: color(myBorderColor) MyBorder. | inside: MyInside.}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 18:18:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/coloring-of-shape-edges-using-cga/m-p/329879#M4536</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-09-15T18:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring of shape edges using CGA</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/coloring-of-shape-edges-using-cga/m-p/329880#M4537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much for your help! I was able to get the outlines using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;version "2015.1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attr Fill_Color = "#FFF80"&lt;/P&gt;&lt;P&gt;attr Outline_Color = "#000000"&lt;/P&gt;&lt;P&gt;attr Transparency = 0.9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@StartRule&lt;/P&gt;&lt;P&gt;AddOutline --&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; offset(-0.5) # thickness of your border. Negative value offsets inwards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; comp( f ) {border: color(Outline_Color) MyBorder. | inside: MyInside.}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Shape --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set(material.opacity, Transparency)&lt;/P&gt;&lt;P&gt;&amp;nbsp; color(Fill_Color)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how to get the fill color to show up?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tess&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Rooms_2.JPG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/126961_Rooms_2.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Rooms_3.JPG" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/126965_Rooms_3.JPG" style="width: 620px; height: 156px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 19:19:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/coloring-of-shape-edges-using-cga/m-p/329880#M4537</guid>
      <dc:creator>TessOldemeyer</dc:creator>
      <dc:date>2015-09-15T19:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring of shape edges using CGA</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/coloring-of-shape-edges-using-cga/m-p/329881#M4538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This line has a couple of placeholders:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;comp( f ) {border: color(Outline_Color) MyBorder. | inside: MyInside.}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Your rule called Shape is not getting called anywhere, so use the "inside" selector to run your rule "Shape" from there....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;comp( f ) {border: color(Outline_Color) MyBorder. | inside: Shape}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 19:26:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/coloring-of-shape-edges-using-cga/m-p/329881#M4538</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-09-15T19:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring of shape edges using CGA</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/coloring-of-shape-edges-using-cga/m-p/329882#M4539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That seems to do the trick. Thanks a ton!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fill color is just patchy.... It shows up the same way in the WebScene too.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Rooms_4.JPG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/127004_Rooms_4.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 21:24:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/coloring-of-shape-edges-using-cga/m-p/329882#M4539</guid>
      <dc:creator>TessOldemeyer</dc:creator>
      <dc:date>2015-09-15T21:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring of shape edges using CGA</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/coloring-of-shape-edges-using-cga/m-p/329883#M4540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Might be another copy of the floor faces. You want to post the rule? I'll check it over if so. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 21:34:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/coloring-of-shape-edges-using-cga/m-p/329883#M4540</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-09-15T21:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring of shape edges using CGA</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/coloring-of-shape-edges-using-cga/m-p/329884#M4541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Absolutely. Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;version "2015.1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attr Fill_Color = "#FFF80"&lt;/P&gt;&lt;P&gt;attr Outline_Color = "#000000"&lt;/P&gt;&lt;P&gt;attr Transparency = 0.9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@StartRule&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AddOutline --&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; offset(-0.2) # thickness of your border. Negative value offsets inwards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; comp( f ) {border: color(Outline_Color) MyBorder. | inside: Shape.}&lt;/P&gt;&lt;P&gt;&amp;nbsp; color(Fill_Color) &lt;/P&gt;&lt;P&gt;&amp;nbsp; set(material.opacity, Transparency)&amp;nbsp; &lt;/P&gt;&lt;P&gt;X.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 22:01:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/coloring-of-shape-edges-using-cga/m-p/329884#M4541</guid>
      <dc:creator>TessOldemeyer</dc:creator>
      <dc:date>2015-09-15T22:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring of shape edges using CGA</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/coloring-of-shape-edges-using-cga/m-p/329885#M4542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, I just fixed on it for a minute. I simplified it to be more readable. Now you have a start rule, and that rule sends the border to a new rule, and the inside shape to a new rule. Just easier to read/debug that way. Face clashing effect should be gone now. I also reversed the set opacity part, so that increasing that attribute increases the transparency (since opacity is the opposite of transparency):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set(material.opacity, 1-Transparency)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CGA file is attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 22:16:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/coloring-of-shape-edges-using-cga/m-p/329885#M4542</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-09-15T22:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring of shape edges using CGA</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/coloring-of-shape-edges-using-cga/m-p/329886#M4543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks a ton better now. Thank you so much for all of your help and time!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tess&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2015 14:48:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/coloring-of-shape-edges-using-cga/m-p/329886#M4543</guid>
      <dc:creator>TessOldemeyer</dc:creator>
      <dc:date>2015-09-16T14:48:47Z</dc:date>
    </item>
  </channel>
</rss>

