<?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: Reversed Normals When Importing DAE &amp; OBJ from Rhino in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/reversed-normals-when-importing-dae-obj-from-rhino/m-p/163458#M2182</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like you have a solution so just a thought:- I wonder if the orietation of the faces is linked to the direction the polygons were originally drawn&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. clockwise polygons face-up&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; anti-clockwise polygons face-down...... or visa versa&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.......just a thought..........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 May 2015 06:55:15 GMT</pubDate>
    <dc:creator>BenLeslie1</dc:creator>
    <dc:date>2015-05-08T06:55:15Z</dc:date>
    <item>
      <title>Reversed Normals When Importing DAE &amp; OBJ from Rhino</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/reversed-normals-when-importing-dae-obj-from-rhino/m-p/163453#M2177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What can I do to make sure that I don't have reversed normals before exporting/importing a bunch of geometry into CityEngine from Rhino? All the surfaces I created were basically done the same way and I'm not sure why they are coming into CityEngine all randomly backwards. Actually, I'm sure it's not random, but it's frustrating and a waste of time and I'd like to understand why this happens and what I can do about it. I've attached the offending files in DAE, OBJ and Rhino format, for your convenience.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 18:33:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/reversed-normals-when-importing-dae-obj-from-rhino/m-p/163453#M2177</guid>
      <dc:creator>VeronicaAnderson</dc:creator>
      <dc:date>2015-05-05T18:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Reversed Normals When Importing DAE &amp; OBJ from Rhino</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/reversed-normals-when-importing-dae-obj-from-rhino/m-p/163454#M2178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use the same process, from Rhino to CE - both 2D surfaces, and 3D models with textures - and I get the same problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually I'm bringing in 2D surfaces drawn from plan view. When I see many facing down and many facing up, then I write a rule like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shape --&amp;gt; extrude(100)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Applied to those shapes the extrusion will either go down or up, then I select the down facing shapes from the side view so as to only select the shapes with reversed normals. You might have to cut and paste those shapes to another layer depending on which CE version you are on (and then select them by layer). Main idea is after you have all of those shapes selected, then in shapes menu do "Reverse Normals" ( and then put them back on correct layer if you had to change their layer). For small imports (&amp;lt;20 objects reversed maybe), then just hold shift while selecting each shape.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 3D models, I just go back to the original Rhino model, and use Flip to reverseNormals, then export again replacing the current model (be sure to refresh the folder in CE containing the model). I think that Rhino's Dir is also for that, but gives more options. Try both and see which is best.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, to see which faces on your models have normal problems, use the gear icon above the viewport, and turn on "Backface Culling" this will show the faces as transparent if you are behind them. This is how the WebScene view displays models, so if you are exporting to web scene, then it is best to turn this on and check over your model before exporting.&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, 05 May 2015 18:59:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/reversed-normals-when-importing-dae-obj-from-rhino/m-p/163454#M2178</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-05-05T18:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Reversed Normals When Importing DAE &amp; OBJ from Rhino</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/reversed-normals-when-importing-dae-obj-from-rhino/m-p/163455#M2179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yay, Chris!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll use Dir before exporting from Rhino from now on to check my geometries and eliminate some unnecessary back and forth. Thanks for saving the day!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 19:21:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/reversed-normals-when-importing-dae-obj-from-rhino/m-p/163455#M2179</guid>
      <dc:creator>VeronicaAnderson</dc:creator>
      <dc:date>2015-05-05T19:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reversed Normals When Importing DAE &amp; OBJ from Rhino</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/reversed-normals-when-importing-dae-obj-from-rhino/m-p/163456#M2180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem. I like using Rhino with CityEngine.&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, 05 May 2015 19:25:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/reversed-normals-when-importing-dae-obj-from-rhino/m-p/163456#M2180</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-05-05T19:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Reversed Normals When Importing DAE &amp; OBJ from Rhino</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/reversed-normals-when-importing-dae-obj-from-rhino/m-p/163457#M2181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Me too. I've never used 3dsMax so I'm not 100% informed on this, but to me CE &amp;amp; Rhino are like the power couple of the 3d modeling world. If only Rhino could get some geolocation capabilities going then life would be perfect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 19:30:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/reversed-normals-when-importing-dae-obj-from-rhino/m-p/163457#M2181</guid>
      <dc:creator>VeronicaAnderson</dc:creator>
      <dc:date>2015-05-05T19:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Reversed Normals When Importing DAE &amp; OBJ from Rhino</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/reversed-normals-when-importing-dae-obj-from-rhino/m-p/163458#M2182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like you have a solution so just a thought:- I wonder if the orietation of the faces is linked to the direction the polygons were originally drawn&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. clockwise polygons face-up&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; anti-clockwise polygons face-down...... or visa versa&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.......just a thought..........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 06:55:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/reversed-normals-when-importing-dae-obj-from-rhino/m-p/163458#M2182</guid>
      <dc:creator>BenLeslie1</dc:creator>
      <dc:date>2015-05-08T06:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Reversed Normals When Importing DAE &amp; OBJ from Rhino</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/reversed-normals-when-importing-dae-obj-from-rhino/m-p/163459#M2183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, the vertex order drives the normal direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Btw. you can write a rule that automatically fixes the orientation if needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if yo need the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN lang="EN-US"&gt;Matthias Buehler&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US"&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN-US"&gt;Head of 3D Technologies&lt;/SPAN&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US"&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999; font-size: 10pt;"&gt;&lt;SPAN lang="EN-US"&gt;twitter: @MattB3D&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US"&gt;-------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US"&gt;Garsdale Design Limited &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:matthias.buehler@garsdaledesign.co.uk" target="_blank"&gt;matthias.buehler@garsdaledesign.co.uk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.garsdaledesign.co.uk/" target="_blank"&gt;www.garsdaledesign.co.uk&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 08:36:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/reversed-normals-when-importing-dae-obj-from-rhino/m-p/163459#M2183</guid>
      <dc:creator>MatthiasBuehler</dc:creator>
      <dc:date>2015-05-08T08:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Reversed Normals When Importing DAE &amp; OBJ from Rhino</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/reversed-normals-when-importing-dae-obj-from-rhino/m-p/163460#M2184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Matt,&lt;/P&gt;&lt;P&gt;That would be a good code to have if you are willing to share please post!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 12:03:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/reversed-normals-when-importing-dae-obj-from-rhino/m-p/163460#M2184</guid>
      <dc:creator>VeronicaAnderson</dc:creator>
      <dc:date>2015-05-08T12:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Reversed Normals When Importing DAE &amp; OBJ from Rhino</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/reversed-normals-when-importing-dae-obj-from-rhino/m-p/163461#M2185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There we go ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #eb7a3d;"&gt;normalYComponent = convert(y, scope, world, orient, 0, 1, 0) - convert(y, scope, world, orient, 0, 0, 0) # calc scope normal's y component in world coords&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #eb7a3d;"&gt;Shape --&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #eb7a3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; alignScopeToAxes(y)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #eb7a3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShapeAligned&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #eb7a3d;"&gt;ShapeAligned --&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #eb7a3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; case normalYComponent &amp;gt;= 0: # if positive: ok, otherwise reverse normals !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #eb7a3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TestMove&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #eb7a3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #eb7a3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reverseNormals&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #eb7a3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TestMove&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #eb7a3d;"&gt;TestMove --&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #eb7a3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t(0,1,0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #eb7a3d;"&gt;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/cool.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN lang="EN-US"&gt;Matthias Buehler&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US"&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN-US"&gt;Head of 3D Technologies&lt;/SPAN&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US"&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999; font-size: 10pt;"&gt;&lt;SPAN lang="EN-US"&gt;twitter: @MattB3D&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US"&gt;--------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US"&gt;Garsdale Design Limited &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:matthias.buehler@garsdaledesign.co.uk" target="_blank"&gt;matthias.buehler@garsdaledesign.co.uk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.garsdaledesign.co.uk/" target="_blank"&gt;www.garsdaledesign.co.uk&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 13:31:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/reversed-normals-when-importing-dae-obj-from-rhino/m-p/163461#M2185</guid>
      <dc:creator>MatthiasBuehler</dc:creator>
      <dc:date>2015-05-08T13:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Reversed Normals When Importing DAE &amp; OBJ from Rhino</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/reversed-normals-when-importing-dae-obj-from-rhino/m-p/163462#M2186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matthias Buehler&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am also having the same problem, normals problems getting when importing drawing file, please share a code of .net &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Nov 2015 10:41:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/reversed-normals-when-importing-dae-obj-from-rhino/m-p/163462#M2186</guid>
      <dc:creator>chandrasekhar_reddyguda</dc:creator>
      <dc:date>2015-11-28T10:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Reversed Normals When Importing DAE &amp; OBJ from Rhino</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/reversed-normals-when-importing-dae-obj-from-rhino/m-p/163463#M2187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;chandrasekhar reddy guda wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matthias Buehler&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P&gt;i am also having the same problem, normals problems getting when importing drawing file, please share a code of .net &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hello Chandra Sekhar Reddy Guda,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no need to write .net code, in fact CityEngine does not use .net at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead you can use CityEngine CGA modelling language to manipulate the imported shapes from a drawing file.&lt;/P&gt;&lt;P&gt;The cga rule snipped above provided by Matthias Buehler can be used to reverse any down facing normals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further information can be found in the CityEngine CGA Help:&lt;/P&gt;&lt;P&gt;&lt;A href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_reverseNormals.html" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_reverseNormals.html"&gt;reverseNormals Operation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a second option, you can use the CityEngine python scripting interface.&lt;/P&gt;&lt;P&gt;This python script corrects the shapes normals after import:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #505050;"&gt;# checks if the shape point order is clockwise&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #505050;"&gt;# note: applies to horizontal plane (x: east, y: up, z: south)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #505050;"&gt;def clockwise(shape):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #505050;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; shapeVertices = ce.getVertices(shape)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #505050;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum = 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #505050;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for i in xrange(0,len(shapeVertices),3):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #505050;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x1 = shapeVertices&lt;I&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #505050;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; z1 = shapeVertices[i+2]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #505050;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x2 = shapeVertices[(i+3)%len(shapeVertices)]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #505050;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; z2 = shapeVertices[(i+5)%len(shapeVertices)]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #505050;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum += (x2-x1)*(z2+z1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #505050;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return sum &amp;lt; 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #505050;"&gt;if __name__ == '__main__':&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #505050;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; selectedShapes = ce.selection()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #505050;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for shape in selectedShapes:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #505050;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ce.isShape(shape):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #505050;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # ensure counter-clockwise order of input shapes (normal up)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #505050;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if clockwise(shape):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #505050;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ce.reverseNormals(shape)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further information can be found in the CityEngine Python Help:&lt;/P&gt;&lt;P&gt;&lt;A href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/manual/python/jscripting/jscripting.CE.html#CE-reverseNormals" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/manual/python/jscripting/jscripting.CE.html#CE-reverseNormals"&gt;Python Scripting Interface Reference&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 15:01:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/reversed-normals-when-importing-dae-obj-from-rhino/m-p/163463#M2187</guid>
      <dc:creator>ThomasFuchs</dc:creator>
      <dc:date>2015-11-30T15:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Reversed Normals When Importing DAE &amp; OBJ from Rhino</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/reversed-normals-when-importing-dae-obj-from-rhino/m-p/163464#M2188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank u Thomas Fuchs, i will try above&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 05:12:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/reversed-normals-when-importing-dae-obj-from-rhino/m-p/163464#M2188</guid>
      <dc:creator>chandrasekhar_reddyguda</dc:creator>
      <dc:date>2015-12-03T05:12:14Z</dc:date>
    </item>
  </channel>
</rss>

