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

Hipped roof calculation out of a straight skeleton #4

Open
vvoovv opened this issue Sep 17, 2020 · 0 comments
Open

Hipped roof calculation out of a straight skeleton #4

vvoovv opened this issue Sep 17, 2020 · 0 comments

Comments

@vvoovv
Copy link
Member

vvoovv commented Sep 17, 2020

Suppose the straight skeleton has been calculated for a polygon.
A maximum hipped roof height roofHeight is given. All roof faces have the same pitch α.

image

So we have
tg(α) = h1/d1 = h2/d2 = hi/di

di is a distance from the straight skeleton vertex till the related edge of the original polygon. di lies in the plane of the original polygon. di is perpendicular to the related edge of the original polygon.

image

di can be considered as a time when the related straight skeleton event occures.

Since roofHeight defines the maximum roof height and di = hi/tg(α), di is maximal at the vertex of the straight skeleton with roofHeight. Finallly, to get tg(α) one needs to pickup the straight skeleton event that occurs at the very end and take it time di to calculate tg(α) = roofHeight/di.

Once tg(α) is known, the height for every vertex of the straight skeleton is calculated as hi = di * tg(α)

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

1 participant