<?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 understanding the concept of Pivot, Object and Scope coordinates and transformations in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/understanding-the-concept-of-pivot-object-and/m-p/26633#M365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to figure out what exactly does&amp;nbsp;the&amp;nbsp;&lt;STRONG&gt;Set Pivot&lt;/STRONG&gt; operation do and understand the ways you move around objects in CGA. I have read the manual but I am still having troubles grasping the whole thing, maybe because of the terminology used. The questions might seem a bit obvious, please be patient with me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="background: none #f6f6f6; border-left: 2px solid #cccccc; margin: 10px 0px; padding: 10px 20px;"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; text-indent: 20px; font-size: 14.4px;"&gt;The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000; font-weight: 900; text-indent: 20px;"&gt;setPivot&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; text-indent: 20px; font-size: 14.4px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;operation lets you re-position and re-orient the current shape's&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000; font-weight: 900; text-indent: 20px;"&gt;pivot&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; text-indent: 20px; font-size: 14.4px;"&gt;. The new orientation will be based on the current shape's&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000; text-indent: 20px;"&gt;scope&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; text-indent: 20px; font-size: 14.4px;"&gt;axes, the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000; text-indent: 20px;"&gt;axisMapSelector&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; text-indent: 20px; font-size: 14.4px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000; text-indent: 20px;"&gt;cornerIndex&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; text-indent: 20px; font-size: 14.4px;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;-------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;If i got it correctly, there are 4&amp;nbsp;coordinates system:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;World Coordinates.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13px;"&gt;These are fixed, one set of coordinates for the whole scene.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Object&amp;nbsp;Coordinates.&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13px;"&gt;These are fixed, one set of coordinates for&amp;nbsp;the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;InitialShape,&amp;nbsp;shared by its whole&amp;nbsp;shape tree.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Pivot&amp;nbsp;Coordinates.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13px;"&gt;Each current shape has one. It changes after each&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;comp operation&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and can be set with CGA&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Scope&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;Coordinates.&amp;nbsp;&lt;SPAN style="font-size: 13px;"&gt;&lt;SPAN style="font-weight: 400;"&gt;Each current shape has one. It changes after each&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-weight: 400;"&gt;shape transformations&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: 400;"&gt;and can be set with CGA&lt;/SPAN&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now, there are 2 ways to translate, 3 ways to rotate and 1 way to scale.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;t:&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; text-indent: 20px; font-size: 13px;"&gt;translates the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;scope&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;in relation to&lt;STRONG&gt;&amp;nbsp;the scope coordinates&lt;/STRONG&gt;. It is a special case of translate, like writing&amp;nbsp;&lt;SPAN style="font-weight: bold;"&gt;translate(rel, &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;scope, x, y, z).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;STRONG&gt;translate:&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; text-indent: 20px; font-size: 13px;"&gt;translates the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;scope&amp;nbsp;&lt;SPAN style="background-color: #ffffff; font-weight: 400;"&gt;of the current shape&lt;/SPAN&gt;&amp;nbsp;&lt;/STRONG&gt;in relation&amp;nbsp;to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;one of the 4 different coordinate systems&lt;/STRONG&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;r:&lt;/STRONG&gt;&amp;nbsp;&lt;SPAN style="font-size: 13px;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; text-indent: 20px;"&gt;rotates the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000; font-weight: bold; text-indent: 20px;"&gt;scope&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; text-indent: 20px;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;of the current shape around EITHER the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;scope origin&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="font-size: 13px;"&gt;scope&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;centre&lt;/SPAN&gt;&amp;nbsp;, using the&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 14.4px;"&gt;&lt;STRONG&gt;pivot&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 14.4px;"&gt;&lt;STRONG&gt;coordinates&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN style="color: #000000;"&gt;. If the rotation centre&amp;nbsp;is the&amp;nbsp;&lt;SPAN style="text-decoration: underline;"&gt;scope origin,&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; font-size: 13px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;it&amp;nbsp;is a special case of rotate, like writing&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: 400; text-indent: 0px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000; font-weight: bold; text-indent: 0px;"&gt;rotate(rel, pivot, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;x, y, z)&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;rotate:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px;"&gt;rotates the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;scope&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; text-indent: 20px;"&gt;of the current shape&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;around the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;scope origin&amp;nbsp;&lt;/SPAN&gt;using&amp;nbsp;&lt;SPAN style="color: #000000; background-color: #ffffff; text-indent: 20px;"&gt;&lt;STRONG&gt;one of the 4 different coordinate systems&lt;/STRONG&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; font-weight: bold;"&gt;rotateScope:&amp;nbsp;&lt;SPAN style="font-size: 13px;"&gt;&lt;SPAN style="font-weight: 400; text-indent: 20px;"&gt;rotates the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="font-weight: bold; text-indent: 20px;"&gt;scope&lt;/SPAN&gt;&lt;SPAN style="font-weight: 400; text-indent: 20px;"&gt;&amp;nbsp;of the current shape around the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;pivot-axes&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in xyz order. The geometry is not rotated, and the size and translation of the scope is adjusted such that the scope is the geometry's bounding box aligned to the scope axes.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;s:&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; text-indent: 20px; font-size: 13px;"&gt;sets the size vector&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000; font-weight: bold; text-indent: 20px; font-size: 13px;"&gt;scope.s.&amp;nbsp;&lt;SPAN style="font-weight: 400; font-size: 14.4px;"&gt;&lt;EM&gt;Negative sizes&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-weight: 400;"&gt;&amp;nbsp;result in mirroring along the corresponding axes; this means inverted normals.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Mirror&lt;/STRONG&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px;"&gt;mirrors the geometry of the current shape.&amp;nbsp;BUT&amp;nbsp;it keeps the scope unchanged.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Mirror Scope&lt;/STRONG&gt;&lt;SPAN&gt;:&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px;"&gt;mirrors the scope of the current shape&amp;nbsp;BUT&amp;nbsp;it keeps the shape's geometry unchanged.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 13px;"&gt;------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 15px;"&gt;So,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 15px;"&gt;question 1: While "t" is a special case of "translate", "r" is ONLY a special case of "rotate" when&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;centerSelector is the&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="background-color: #ffffff; text-indent: 20px;"&gt;SCOPE ORIGIN, did I got it right or i misunderstood?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;SPAN style="background-color: #ffffff; text-indent: 20px;"&gt;It seems to me like t and r are a shortened simplified version of translate and rotate,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;the same way like "texture ()" is a quick way to say&amp;nbsp;&lt;/SPAN&gt;set(material.colormap, ).&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 15px;"&gt;question 2:&amp;nbsp;Does rotateScope ONLY rotates the scope while "r" and "rotate"&amp;nbsp;turn the scope AND the geometry together?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 15px;"&gt;question 3:&amp;nbsp;"r" uses the pivot cordinates, "rotate" allows you to choose one of the 4 coordinates system. What about&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;rotateScope,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;does it uses world, object, pivot or scope? Is "&lt;SPAN style="text-decoration: underline;"&gt;pivot&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;axes&lt;/SPAN&gt;" referring to the point around which it can rotate or the coordinates system which is using to calculate the rotation?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 15px;"&gt;question 4:&amp;nbsp;"r" can rotate around the&amp;nbsp;&lt;SPAN style="text-decoration: underline;"&gt;scope origin&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;or the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;scope&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;centre,&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;"rotate" only around the&amp;nbsp;&lt;SPAN style="text-decoration: underline;"&gt;scope origin&lt;/SPAN&gt;. "&lt;SPAN style="background-color: #ffffff;"&gt;rotateScope"&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: 400; text-indent: 20px;"&gt;rotates the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="font-weight: bold; text-indent: 20px;"&gt;scope&lt;/SPAN&gt;&lt;SPAN style="font-weight: 400; text-indent: 20px;"&gt;&amp;nbsp; around the&amp;nbsp;"&lt;SPAN style="text-decoration: underline;"&gt;pivot-axes"&lt;/SPAN&gt;, does it means around the pivot&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;position vector&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;p&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;(origin)&lt;/SPAN&gt;&amp;nbsp;?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="color: #000000; text-indent: 20px; font-weight: 400; font-size: 15px;"&gt;Final question: Why would I want to change the pivot?, what is the benefit from doing it? Does it changes the first edge of the shape? What is a situation in which changing the pivot could be important or required? Why not changing the object&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="color: #000000; text-indent: 20px; font-weight: 400; font-size: 15px;"&gt;Thanks for all the help&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="color: #000000; text-indent: 20px; font-weight: 400; font-size: 15px;"&gt;A.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Oct 2018 17:28:40 GMT</pubDate>
    <dc:creator>AbeleGiandoso</dc:creator>
    <dc:date>2018-10-01T17:28:40Z</dc:date>
    <item>
      <title>understanding the concept of Pivot, Object and Scope coordinates and transformations</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/understanding-the-concept-of-pivot-object-and/m-p/26633#M365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to figure out what exactly does&amp;nbsp;the&amp;nbsp;&lt;STRONG&gt;Set Pivot&lt;/STRONG&gt; operation do and understand the ways you move around objects in CGA. I have read the manual but I am still having troubles grasping the whole thing, maybe because of the terminology used. The questions might seem a bit obvious, please be patient with me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="background: none #f6f6f6; border-left: 2px solid #cccccc; margin: 10px 0px; padding: 10px 20px;"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; text-indent: 20px; font-size: 14.4px;"&gt;The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000; font-weight: 900; text-indent: 20px;"&gt;setPivot&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; text-indent: 20px; font-size: 14.4px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;operation lets you re-position and re-orient the current shape's&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000; font-weight: 900; text-indent: 20px;"&gt;pivot&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; text-indent: 20px; font-size: 14.4px;"&gt;. The new orientation will be based on the current shape's&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000; text-indent: 20px;"&gt;scope&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; text-indent: 20px; font-size: 14.4px;"&gt;axes, the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000; text-indent: 20px;"&gt;axisMapSelector&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; text-indent: 20px; font-size: 14.4px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000; text-indent: 20px;"&gt;cornerIndex&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; text-indent: 20px; font-size: 14.4px;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;-------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;If i got it correctly, there are 4&amp;nbsp;coordinates system:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;World Coordinates.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13px;"&gt;These are fixed, one set of coordinates for the whole scene.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Object&amp;nbsp;Coordinates.&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13px;"&gt;These are fixed, one set of coordinates for&amp;nbsp;the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;InitialShape,&amp;nbsp;shared by its whole&amp;nbsp;shape tree.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Pivot&amp;nbsp;Coordinates.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13px;"&gt;Each current shape has one. It changes after each&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;comp operation&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and can be set with CGA&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Scope&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;Coordinates.&amp;nbsp;&lt;SPAN style="font-size: 13px;"&gt;&lt;SPAN style="font-weight: 400;"&gt;Each current shape has one. It changes after each&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-weight: 400;"&gt;shape transformations&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: 400;"&gt;and can be set with CGA&lt;/SPAN&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now, there are 2 ways to translate, 3 ways to rotate and 1 way to scale.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;t:&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; text-indent: 20px; font-size: 13px;"&gt;translates the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;scope&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;in relation to&lt;STRONG&gt;&amp;nbsp;the scope coordinates&lt;/STRONG&gt;. It is a special case of translate, like writing&amp;nbsp;&lt;SPAN style="font-weight: bold;"&gt;translate(rel, &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;scope, x, y, z).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;STRONG&gt;translate:&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; text-indent: 20px; font-size: 13px;"&gt;translates the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;scope&amp;nbsp;&lt;SPAN style="background-color: #ffffff; font-weight: 400;"&gt;of the current shape&lt;/SPAN&gt;&amp;nbsp;&lt;/STRONG&gt;in relation&amp;nbsp;to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;one of the 4 different coordinate systems&lt;/STRONG&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;r:&lt;/STRONG&gt;&amp;nbsp;&lt;SPAN style="font-size: 13px;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; text-indent: 20px;"&gt;rotates the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000; font-weight: bold; text-indent: 20px;"&gt;scope&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; text-indent: 20px;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;of the current shape around EITHER the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;scope origin&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="font-size: 13px;"&gt;scope&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;centre&lt;/SPAN&gt;&amp;nbsp;, using the&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 14.4px;"&gt;&lt;STRONG&gt;pivot&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 14.4px;"&gt;&lt;STRONG&gt;coordinates&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN style="color: #000000;"&gt;. If the rotation centre&amp;nbsp;is the&amp;nbsp;&lt;SPAN style="text-decoration: underline;"&gt;scope origin,&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; font-size: 13px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;it&amp;nbsp;is a special case of rotate, like writing&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: 400; text-indent: 0px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000; font-weight: bold; text-indent: 0px;"&gt;rotate(rel, pivot, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;x, y, z)&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;rotate:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px;"&gt;rotates the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;scope&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; text-indent: 20px;"&gt;of the current shape&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;around the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;scope origin&amp;nbsp;&lt;/SPAN&gt;using&amp;nbsp;&lt;SPAN style="color: #000000; background-color: #ffffff; text-indent: 20px;"&gt;&lt;STRONG&gt;one of the 4 different coordinate systems&lt;/STRONG&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; font-weight: bold;"&gt;rotateScope:&amp;nbsp;&lt;SPAN style="font-size: 13px;"&gt;&lt;SPAN style="font-weight: 400; text-indent: 20px;"&gt;rotates the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="font-weight: bold; text-indent: 20px;"&gt;scope&lt;/SPAN&gt;&lt;SPAN style="font-weight: 400; text-indent: 20px;"&gt;&amp;nbsp;of the current shape around the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;pivot-axes&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in xyz order. The geometry is not rotated, and the size and translation of the scope is adjusted such that the scope is the geometry's bounding box aligned to the scope axes.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;s:&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; text-indent: 20px; font-size: 13px;"&gt;sets the size vector&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000; font-weight: bold; text-indent: 20px; font-size: 13px;"&gt;scope.s.&amp;nbsp;&lt;SPAN style="font-weight: 400; font-size: 14.4px;"&gt;&lt;EM&gt;Negative sizes&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-weight: 400;"&gt;&amp;nbsp;result in mirroring along the corresponding axes; this means inverted normals.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Mirror&lt;/STRONG&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px;"&gt;mirrors the geometry of the current shape.&amp;nbsp;BUT&amp;nbsp;it keeps the scope unchanged.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Mirror Scope&lt;/STRONG&gt;&lt;SPAN&gt;:&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px;"&gt;mirrors the scope of the current shape&amp;nbsp;BUT&amp;nbsp;it keeps the shape's geometry unchanged.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 13px;"&gt;------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 15px;"&gt;So,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 15px;"&gt;question 1: While "t" is a special case of "translate", "r" is ONLY a special case of "rotate" when&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;centerSelector is the&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="background-color: #ffffff; text-indent: 20px;"&gt;SCOPE ORIGIN, did I got it right or i misunderstood?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;SPAN style="background-color: #ffffff; text-indent: 20px;"&gt;It seems to me like t and r are a shortened simplified version of translate and rotate,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;the same way like "texture ()" is a quick way to say&amp;nbsp;&lt;/SPAN&gt;set(material.colormap, ).&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 15px;"&gt;question 2:&amp;nbsp;Does rotateScope ONLY rotates the scope while "r" and "rotate"&amp;nbsp;turn the scope AND the geometry together?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 15px;"&gt;question 3:&amp;nbsp;"r" uses the pivot cordinates, "rotate" allows you to choose one of the 4 coordinates system. What about&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;rotateScope,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;does it uses world, object, pivot or scope? Is "&lt;SPAN style="text-decoration: underline;"&gt;pivot&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;axes&lt;/SPAN&gt;" referring to the point around which it can rotate or the coordinates system which is using to calculate the rotation?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 15px;"&gt;question 4:&amp;nbsp;"r" can rotate around the&amp;nbsp;&lt;SPAN style="text-decoration: underline;"&gt;scope origin&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;or the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;scope&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;centre,&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;"rotate" only around the&amp;nbsp;&lt;SPAN style="text-decoration: underline;"&gt;scope origin&lt;/SPAN&gt;. "&lt;SPAN style="background-color: #ffffff;"&gt;rotateScope"&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: 400; text-indent: 20px;"&gt;rotates the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="font-weight: bold; text-indent: 20px;"&gt;scope&lt;/SPAN&gt;&lt;SPAN style="font-weight: 400; text-indent: 20px;"&gt;&amp;nbsp; around the&amp;nbsp;"&lt;SPAN style="text-decoration: underline;"&gt;pivot-axes"&lt;/SPAN&gt;, does it means around the pivot&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;position vector&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;p&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;(origin)&lt;/SPAN&gt;&amp;nbsp;?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="color: #000000; text-indent: 20px; font-weight: 400; font-size: 15px;"&gt;Final question: Why would I want to change the pivot?, what is the benefit from doing it? Does it changes the first edge of the shape? What is a situation in which changing the pivot could be important or required? Why not changing the object&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="color: #000000; text-indent: 20px; font-weight: 400; font-size: 15px;"&gt;Thanks for all the help&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="color: #000000; text-indent: 20px; font-weight: 400; font-size: 15px;"&gt;A.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 17:28:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/understanding-the-concept-of-pivot-object-and/m-p/26633#M365</guid>
      <dc:creator>AbeleGiandoso</dc:creator>
      <dc:date>2018-10-01T17:28:40Z</dc:date>
    </item>
  </channel>
</rss>

