Dose the SDK support creating 3d street models from street lines?
CaoYangNianHua opened this issue · 2 comments
CaoYangNianHua commented
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
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:
- read the shape files and extract the street line segments (http://shapelib.maptools.org is a nice library for this).
- create prt::InitialShape instances for the street line segments
- run prt::generate on these initial shapes with the appropriate street rule package
i hope this helps!
best,
simon
mistafunk commented
closing due to inactivity