Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
CaoYangNianHua opened this issue Mar 23, 2016 · 2 comments
Closed

Comments

@CaoYangNianHua
Copy link

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
Copy link
Collaborator

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
Copy link
Collaborator

closing due to inactivity

SGoetschi added a commit that referenced this issue Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants