roofPyramid
Synopsis
roofPyramid(angle)
roofPyramid(valueType, value)
Parameters
 valueType (selstring)
Type of roof generation (byAngle  byHeight).  value (float)
Angle or height of the roofplanes as specified by valueType.  angle (float)
Angle of the roofplanes (generation byAngle).
The roofPyramid operation builds a pyramid roof perpendicular to each face of the current shape's geometry. The polygon center (average of all vertices) gets extruded along the face normal by the given height and connected to all polygon vertices. The new triangles are the roof faces. If an angle is given the height is chosen such that the angle between roof triangle 1 and the polygon is as specified.
The connectivity of the roof mesh is optimized for trim plane generation to cut bricks inserted into the roof planes (see examples below).
Scope
The scope orientation is set in the following way:
 xaxis direction is kept as much as possible (old xaxis is projected to plane orthogonal to face normal of the first face)
 yaxis along the face normal of the first face
 zaxis normal to the two above
Related
 envelope operation
 extrude operation
 offset operation
 roofGable operation
 roofHip operation
 roofShed operation
 taper operation
Examples
Simple Pyramid Roof
A basic pyramid roof is generated on top of an extruded Llot.
Lot > extrude(10) Mass Mass > comp(f) { top: Top  all: X } Top > roofPyramid(30) RoofA pyramid roof with roof slope 30 degrees is built on top of an extruded Llot. Note the setting of the pivot and scope. 

Roof > comp(f) { all : X }After a component split, each roof face contains trim planes to cut bricks on insertion. 
There is exactly one roof face perTop shape edge.
Copyright ©20082018 Esri R&D Center Zurich. All rights reserved.