Esri / cityengine-sdk

CityEngine is a 3D city modeling software for urban design, visual effects, and VR/AR production. With its C++ SDK you can create plugins and standalone apps capable to execute CityEngine CGA procedural modeling rules.
https://esri.github.io/cityengine/cityenginesdk
Apache License 2.0
206 stars 64 forks source link

Dose the SDK support creating 3d street models from street lines? #27

Closed CaoYangNianHua closed 8 years ago

CaoYangNianHua commented 8 years ago

Dear experts, dose the cityengine SDK support creating 3d street models by importing city vector street lines? (i.e."road.shp"). I know that when we import city road lines into the cityengine software scene,it will create road polygons automatily.Does the cityengine SDK have the same ability? Looking forward to your reply.

mistafunk commented 8 years ago

apologies for the slow answer!

yes, you can generate 3d street models with the SDK but it requires some manual work to read the shapefiles. to generate 3d street models you would need to do the following in your client application:

  1. read the shape files and extract the street line segments (http://shapelib.maptools.org is a nice library for this).
  2. create prt::InitialShape instances for the street line segments
  3. run prt::generate on these initial shapes with the appropriate street rule package

i hope this helps!

best, simon

mistafunk commented 8 years ago

closing due to inactivity