Select to view content in your preferred language

How can a load a shapefile (.shp) in c++ with the sdk and get the geometry to apply the rule?

3162
2
03-08-2019 02:39 AM
JavierFuentes
New Contributor

I'm triying to load a shapefile in the example of the city engine sdk prt4cmd but it doesnt load the file.

0 Kudos
2 Replies
ThomasFuchs
Esri Regular Contributor

Please refer the readme:
esri-cityengine-sdk/README_windows.md at master · Esri/esri-cityengine-sdk · GitHub 
As Initial shapes formats supported by i operation—CGA | ArcGIS Desktop can by used.

0 Kudos
SimonHaegler
Esri Contributor

Hi Javier,

allow me to add a few technical details:

prt4cmd uses prt::InitialShapeBuilder::resolveGeometry to read the initial shape geometry. resolveGeometry in turn can only read formats which have a decoder available in PRT.

relevant decoders in PRT 1.10.4198 are:

- obj

- dae (collada)

- fbx

full list:

https://esri.github.io/esri-cityengine-sdk/html/esri_prt_codecs.html#aDecoders

Best,

Simon

0 Kudos