Arch Roof

Description
The tool allows for the creation of a sloped roof from a selected wire. The created roof object is parametric, keeping its relationship with the base object. The principle is that each edge is seen allotting a profile of roof (slope, width, overhang, thickness).

Note: This tool is still in development, and might fail with very complex shapes.



Usage

 * 1) Create a closed wire with following the counter-clockwise direction and select it.
 * [[Image:CounterclockwiseWire.png|600px]]
 * 1) Press the  button, or press  then  keys
 * 2) The default roof object could have a strange shape, it's because the tool is missing some necessary information.
 * 3) After creating the default roof, double click on the object in the tree view to access and edit all the properties. Angle must be between 0 and 90.
 * [[File:RoofTable.png]]
 * 1) Each line corresponds to a roof pane. So you can set the properties you want for each roof pane.
 * 2) To help you, you can set  or  to  and define a, this makes an automatic calculation to find the data relative to the.
 * 3) It works like this:
 * 4) If  and  then profile is identical to the relative profile.
 * 5) If  then  is calculated so that the height is the same one as the relative profile.
 * 6) If  then  is calculated so that the height is the same one as the relative profile.
 * 7) Finally, set an Angle to 90° to make a gable.
 * [[Image:RoofProfil.png|600px]]
 * : for better comprehension, please see this youtube clip.

Options

 * Roofs share the common properties and behaviors of all Arch Components.

Data

 * : The list of angles of the roof segments.
 * : The total length of the borders of the roof.
 * : The face number of the base object used to build the roof (not used).
 * : Specifies if the direction of the roof should be flipped.
 * : The list of calculated heights of the roof segments.
 * : The list of IDs of the relative profiles of the roof segments.
 * : The list of overhangs of the roof segments.
 * : The total length of the ridges and hips of the roof.
 * : The list of horizontal length projections of the roof segments.
 * : The list of thicknesses of the roof segments.

Scripting
Arch API and FreeCAD Scripting Basics.

The Roof tool can be used in macros and from the Python console by using the following function:


 * Creates a object from the given, which can be a closed wire or a solid object.
 * If is a wire, you can provide lists for, , , , and , for each edge in the wire to define the shape of the roof.
 * The lists are automatically completed to match the number of edges in the wire.

Example: