Use another edge to orientation of ridge.

1271
7
11-21-2016 01:46 AM
KennethLindhardt
Occasional Contributor

Hi Guys, I find the new function Value type byHeight in roof creation very useful.  I was a little sad that I did not recognized that the possibility to rotate the roof by it’s index didn’t work when you use byHeight. Is there any other way to rotate the way CE calculates the slope side, by rotating the scope or something?

Right now my roofs are calculated almost perfect, but I need to “rotate” them. No problem if I had the angle.

Could it be possible to calculate the Angle, by what the byHeight created and loop it back and use the angle instead? Any good ideas on that?

Thanks

0 Kudos
7 Replies
LR
by
Regular Contributor

I just do this..

Roof -->
 roofGable(byHeight, XX)
 r(0, 0, 90)
 s(scope.sz, '1, scope.sx)
 t(-scope.sx,0,0)
0 Kudos
KennethLindhardt
Occasional Contributor

Thank’s that will work in some cases, but only if you got a completely square byilding, as soon you got something sticking out, or an angled corner it won’t work. Is that correct?

/ Kenneth Lindhardt -- +45 61 22 59 19

0 Kudos
ThomasFuchs
Esri Regular Contributor

The algorithm roofGable(byHeight, XX)automatically creates the gables at the smaller sides of the building.
Here is a hacky solution to rotate the gable roof by 90°:

RoofRot -->
     s(scope.sx*0.001,'1,'1)
     roofGable("byHeight", XX)
     s(scope.sx*1000,'1,'1)

KennethLindhardt
Occasional Contributor

That’s awesome, Works perfectly so thank you ☺

/ Kenneth Lindhardt -- +45 61 22 59 19

0 Kudos
MohammadBabaei1
New Contributor II

hi there

this line is not working in my CGA  editor?

roofGable("byHeight", XX)
0 Kudos
KennethLindhardt
Occasional Contributor

Hi the XX, should be replaced with the roof height, from eaves to hip.

/ Kenneth Lindhardt -- +45 61 22 59 19

0 Kudos
MohammadBabaei1
New Contributor II

oh got it

tanx

0 Kudos