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

Extrusion always occurs along "local" z axis #4

Closed
geognu opened this issue Sep 28, 2015 · 5 comments
Closed

Extrusion always occurs along "local" z axis #4

geognu opened this issue Sep 28, 2015 · 5 comments

Comments

@geognu
Copy link

geognu commented Sep 28, 2015

As stated,when you set an attribute for "extrusion from field" while importing shapefile, extrusion always happens along the normal of the face (in a polygon). If your polygon has a non-horizontal base but you still want to just extrude it along the global z axis, you can't achieve the result

screen
screen_extr

@domlysz
Copy link
Owner

domlysz commented Sep 28, 2015

To quickly change this behaviour you can edit line 223 of file op_import_shp.py, change "vect=normal*offset" to "vect=(0,0,offset)"

I will add an option to choose between the two behavior.

@geognu
Copy link
Author

geognu commented Sep 29, 2015

This solution works for me, it will indeed be great to have to option in the configuration window.

@geognu geognu closed this as completed Sep 29, 2015
@geognu geognu reopened this Sep 29, 2015
@geognu
Copy link
Author

geognu commented Sep 29, 2015

It will also be cool if you could choose whether the top face of the extruded polygon will be parallel to the base face or if you want it flat (useful if you are extruding buildings footprint and adding roof geometry later)

@domlysz
Copy link
Owner

domlysz commented Nov 3, 2015

Hi,

Now there is an option to choose extrusion axis. Handle roof orientation is much more complex, maybe the next time.

@domlysz
Copy link
Owner

domlysz commented Mar 15, 2016

#9

@domlysz domlysz closed this as completed Mar 15, 2016
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