Inbound data formatting

3908
5
05-25-2016 04:57 AM
TerenceDaniels
New Contributor

If the main building operations take place on the sides/facade/roof of the structure, can we define those attributes on specific tesselations in the editor once an obj is imported?  Can we write any of the data files with attributes from other 3D programs, is there a complete list , OSM,GDB,IMG...

Tags (1)
0 Kudos
5 Replies
CherylLau
Esri Regular Contributor

I'm not sure I understand your questions, but here's a guess.

Are you trying to import an object with multiple faces (like a building that has sides and a roof) and then apply a rule to it which distinguishes between the facades and roof?  Yes, this can be done with a CGA rule.  Check out the rule Esri.lib/rules/Buildings/Building_Mass_Texturizer.cga.  In the Generate rule, a comp split on the faces is used to separate out the Facade faces (vertical faces) from the Roof faces (aslant and horizontal faces).

comp(f){ vertical : Facade

| aslant   : RoofPlane

| horizontal : RoofPlane }

Are you wondering what files you can import into CityEngine?  Here is a list:

Importing Data

0 Kudos
TerenceDaniels
New Contributor

So I can bring in any obj and just use those calls and anything not vertical is considered a roof plane?  Also I see where  the geometry is cleaned and aligned to y but I don't see the obj brought in using the "I" command.

0 Kudos
CherylLau
Esri Regular Contributor

Yes, you can insert the obj file using the i command first and then use the comp split to get the faces.  The comp split reference page describes the vertical, aslant, and horizontal selectors with angle ranges and examples:

Component Split Operation

0 Kudos
TerenceDaniels
New Contributor

Oh great I remembered seeing some video of primitives brought in through MAYA.  With the data types, I seem to be having trouble finding a definite source in the USGS.  Is there another interface that is not as confusing to download from.  I often find that the download links are offline or for some reason wont import as .gdb in CE.  Does the gdb actually contain the other data types such as OSM?

0 Kudos
CherylLau
Esri Regular Contributor

CityEngine supports importing of data from a variety of different file types including OSM and GDB.

Importing Data

If you save your work in Maya as an OBJ, then you can import this into CityEngine as well.

Maybe your other question is better suited for someone at the USGS.

0 Kudos