Esri/cityengine-sdk

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

CaoYangNianHua opened this issue · 2 comments

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.

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

closing due to inactivity