<?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: Access to Meshes with Python in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/access-to-meshes-with-python/m-p/513268#M6923</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;SPAN&gt;I need a little more info on what you need to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Select the objects ? Get reports ? ..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you see those :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://video.arcgis.com/watch/1778/tutorial-10-python-scripting"&gt;http://video.arcgis.com/watch/1778/tutorial-10-python-scripting&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://video.arcgis.com/watch/1780/tutorial-12-scripted-report-export"&gt;http://video.arcgis.com/watch/1780/tutorial-12-scripted-report-export&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Dec 2012 10:12:33 GMT</pubDate>
    <dc:creator>MatthiasBuehler1</dc:creator>
    <dc:date>2012-12-04T10:12:33Z</dc:date>
    <item>
      <title>Access to Meshes with Python</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/access-to-meshes-with-python/m-p/513267#M6922</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;SPAN&gt;I'm using a licensed version of CityEngine (Esri CityEngine 2012.1 build 120913 (release, win32-64bit)) which is registered to a Japanese account.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After using a cga-rule file to generate a shape I want to access the generated information in the Scene.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You help is much appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 08:12:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/access-to-meshes-with-python/m-p/513267#M6922</guid>
      <dc:creator>UrbanoDaniel</dc:creator>
      <dc:date>2012-12-04T08:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Access to Meshes with Python</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/access-to-meshes-with-python/m-p/513268#M6923</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;SPAN&gt;I need a little more info on what you need to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Select the objects ? Get reports ? ..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you see those :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://video.arcgis.com/watch/1778/tutorial-10-python-scripting"&gt;http://video.arcgis.com/watch/1778/tutorial-10-python-scripting&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://video.arcgis.com/watch/1780/tutorial-12-scripted-report-export"&gt;http://video.arcgis.com/watch/1780/tutorial-12-scripted-report-export&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 10:12:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/access-to-meshes-with-python/m-p/513268#M6923</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-12-04T10:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Access to Meshes with Python</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/access-to-meshes-with-python/m-p/513269#M6924</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;SPAN&gt;I hope the picture helps understanding what I want. The left side in it shows for example a street before generating the models. There I have the information about the vertices of the edges of the highlighted shape.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The right side shows the street after generating the model of the shape. There I also want access to the information about the vertices required to separate the different textures of the street.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These information have to be somewhere since they are available to for example Unity (as Meshes) after exporting. I however want to access these information in CityEngine either with a main-script, or with an export-script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again, You help is much appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 20:51:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/access-to-meshes-with-python/m-p/513269#M6924</guid>
      <dc:creator>UrbanoDaniel</dc:creator>
      <dc:date>2012-12-04T20:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Access to Meshes with Python</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/access-to-meshes-with-python/m-p/513270#M6925</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;SPAN&gt;To get those vertex coordinates you best use CGA's convert() function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Check the docs on it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So what I'd do is :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cut the street geometry a little further until you basically have a tiny shape ( 1 x 1 cm) and then use convert() to get the desired coordinates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Question : How precise do you need those positions ? Within 'millimeter range' or 'as precise as it gets' ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Depending on that answer, strategies are a little different.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 07:52:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/access-to-meshes-with-python/m-p/513270#M6925</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-12-05T07:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Access to Meshes with Python</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/access-to-meshes-with-python/m-p/513271#M6926</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;SPAN&gt;Thank you for your suggestion. Your help is much appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would very much like to stay independent of the cga rule file for this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for the accuracy: I would like to get those meshes with its triangles, textures and uv-mapping in a similar accuracy as I would get them after exporting the whole thing to FXB and reading them from there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess my problem is a little special.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope there is a solution to this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yet again, You help is much appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 09:13:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/access-to-meshes-with-python/m-p/513271#M6926</guid>
      <dc:creator>UrbanoDaniel</dc:creator>
      <dc:date>2012-12-05T09:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Access to Meshes with Python</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/access-to-meshes-with-python/m-p/513272#M6927</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;SPAN&gt;The problem is that once the model is generated with CGA you have no more metadata available and 'just' a 3d mesh with a certain topology which you can not query with a certain intelligence.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course you can get the list of vertices for the mesh, but this helps nothing because you need the geometric metadata.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your usecase is sensitive, feel free to PM me, I'll treat the stuff of course confidential. Maybe if I understand your needs better I can help further.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The road I described will provide you with very precise vertex positions, possibly also other data you need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 14:32:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/access-to-meshes-with-python/m-p/513272#M6927</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-12-05T14:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Access to Meshes with Python</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/access-to-meshes-with-python/m-p/513273#M6928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The reporting mechanisms are your main access to data on a shape. You need to use cga to put the required information into those reports. You can put many types of data into reports depending on how you break your model down.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Reports are attached to resulting shapes (the final generated shape) or shape leaf's as they are generated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The data that is in a report can be effectively collected at export using the script based exporter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;From experience I would advise you use the uuid's that are available for most things, record those into the report as the main method of data association.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Within the script based exporter you can create complex python data structures to store information extracted from those reports.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The information can then be written out too, for example, xml or Jason. As python works with these quite nicely.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could then write a parser/reader script in Unity to parse the output xml report data and do the application functions I think you are aiming to do, for shader assignments and texture hookups etc.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 19:45:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/access-to-meshes-with-python/m-p/513273#M6928</guid>
      <dc:creator>RobertHexter</dc:creator>
      <dc:date>2012-12-10T19:45:36Z</dc:date>
    </item>
  </channel>
</rss>

