confused Splitting sloping walls?

This topic has been viewed 19757 times and has 18 replies
Thread status: Active
How can I do this? [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
User avatar
macfrog
Posts: 230
Joined: Sun Nov 14, 2010 7:36 pm
Country: Germany

Re: Splitting sloping walls?

Post by macfrog »

hi wrosun,

the "problem" was already solved before i started this thread. in first msg i wrote "i got a workaround" and i was asking for something easier i might have overseen.
i posted the picture just to let anybody see i donot ask for no reason; especially hans is very helpfull and spend some night with other peoples problems.
oh, and thanks for liking my model :)
okh
Posts: 1545
Joined: Sun May 12, 2013 9:43 pm

Re: Splitting sloping walls?

Post by okh »

...intercept the meaning of the theorem...
Thanks Hans for your theorem interception, very useful. I think you mention something about doing the math in your much used roof guide. So as a hint, I took the liberty of putting a pointer to various calculations in SourceForge, feature-requests 684.

Maybe it is worth making a list of the most useful calculations for all of us who where not subjected to French maths in school? For instance, how to calculate the values indicated here, and probably a few more that I did not think of:
ok

Image[/
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Splitting sloping walls?

Post by Puybaret »

In your drawing, intercept theorem says that:

Code: Select all

4.5 / (3.4 - 1.6) = 2.2 / (2.48 - 1.6)
as you probably look for the 2.48 height here, the previous formula isn't very handy, but you can change it like this:

Code: Select all

2.48 = 1.6 + 2.2 x (3.4 - 1.6) / 4.5
If you replace 1.6 by heightAtStart, 3.4 by heightAtEnd, 4.5 by distanceBetweenStartAndEnd and 2.2 by distanceFromStart, you get:

Code: Select all

intermediateWallHeight = heightAtStart + distanceFromStart x (heightAtEnd - heightAtStart) / distanceBetweenStartAndEnd
Note that (heightAtEnd - heightAtStart) / bothWallsLength is a factor that could reapply elsewhere on walls with the same slope. This factor is also equal to tangent of 21.8°. Thus, if you know the 21.8° angle of the slope, you can also use:

Code: Select all

intermediateWallHeight = heightAtStart + distanceFromStart x tan(slopeAngle)
If you want to calculate that angle, just reverse the formula:

Code: Select all

slopeAngle = arctan((heightAtEnd - heightAtStart) / distanceBetweenStartAndEnd)
You might also wonder how to compute the 4.85 roof length. This time, it's Pythagorean theorem that will give you the answer because angles between walls and the floor are right:

Code: Select all

4.85² = 1.8² + 4.5² = (3.4 - 1.6)² + 4.5²
If you replace 1.6 by heightAtStart, 3.4 by heightAtEnd and 4.5 by distanceBetweenStartAndEnd, you get:

Code: Select all

roofLength² = (heightAtEnd - heightAtStart)² + distanceBetweenStartAndEnd²
or:

Code: Select all

roofLength = sqrt((heightAtEnd - heightAtStart)² + distanceBetweenStartAndEnd²)
where sqrt is the square root.

Hope this will help [:)]
Emmanuel Puybaret, Sweet Home 3D creator
okh
Posts: 1545
Joined: Sun May 12, 2013 9:43 pm

Re: Splitting sloping walls?

Post by okh »

Thanks a lot for this - and mostly for always paying attention to detail and answering every question. But I do feel guilty, it was not my intention to ask you to take the time to make the list. Checking my Pythagoras and basic trigonometry would certainly not do me any harm (even if I embarrassingly had to look up tangent being opposite/adjacent). That said, your explanation is, of course, better. And in any case, it always makes sense to check the maths of lawyers [:)] (As the joke goes: What can a goose do, a duck cannot, and a lawyer should? - Answer is where they can stick their bill...).

Anyway, this is the image I intended to post, trying to summarise hansmex' and the other posts on slopes and angles. Probably with unforgivable (and possibly erroneous) simplifications...

ok

Image
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Splitting sloping walls?

Post by Puybaret »

Don't worry, I'm glad you found my answer useful [:)]
Just a small detail that bothers me on your drawing: visually, the ends of the green line don't seem to measure the top and the bottom of the same wall. You should add a small green line to join the top of intercepting wall. Hope you see what I mean...
Emmanuel Puybaret, Sweet Home 3D creator
okh
Posts: 1545
Joined: Sun May 12, 2013 9:43 pm

Re: Splitting sloping walls?

Post by okh »

Yes, it bothered me too. I meant to move the entire green line, but forgot in the haste. Work in progress. To be improved. Thanks.
okh
Posts: 1545
Joined: Sun May 12, 2013 9:43 pm

Re: Splitting sloping walls?

Post by okh »

Hmm, I did update the image, but forgot to link it here, still a rough sketch, though:Image
mazaya
Posts: 2
Joined: Thu May 28, 2015 9:58 am

Re: Splitting sloping walls?

Post by mazaya »

That's an ingenious but simple workaround
okh
Posts: 1545
Joined: Sun May 12, 2013 9:43 pm

Re: Splitting sloping walls?

Post by okh »

A different take on the same issue continued in thread 5953 with an interactive tool: Sloping wall intercept ok

Image
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 2 guests