Print at Dec 17, 2025, 9:50:46 AM

Posted by live at Apr 19, 2013, 4:26:50 PM
Re: SH3D V4.0 dimension quotations & area wishes
>this length depends on the angle with the next wall, the thickness of these walls and whether the room you draw has a concave or convex shape!

Indeed, the difficult lies in the fact wall's length is measured by its middle and not its exterior (which would be way simpler when drawing from existing plan and would not lead to "By the way, note that while drawing it's impossible to guess this information, since the program can't anticipate if the user is going to create an other wall after the one he's currently drawing")

Now:
for straight walls, it just formula of a square rectangle (hypo ² = sin² + cos²:

you now have
wall.length() +/- sqrt( (0.5*wall.thickness)^2 - (0.5*leftwall.thickness)^2 ) +/- sqrt( (0.5*wall.thickness)^2 - (0.5*rightwall.thickness)^2 )

+ or - according to the wall orientation.