C# Class BuildingCoder.CmdSlabBoundaryArea

Inheritance: IExternalCommand
Exibir arquivo Open project: jeremytammik/the_building_coder_samples Class Usage Examples

Public Methods

Method Description
Execute ( ExternalCommandData commandData, string &message, ElementSet elements ) : System.Result
Flatten ( List polygon ) : List

Eliminate the Z coordinate.

GetSignedPolygonArea ( List p ) : double

Use the formula area = sign * 0.5 * sum( xi * ( yi+1 - yi-1 ) ) to determine the winding direction (clockwise or counter) and area of a 2D polygon. Cf. also GetPolygonPlane.

Private Methods

Method Description
Flatten ( List polygons ) : List>

Eliminate the Z coordinate.

Flatten ( XYZ point ) : UV

Eliminate the Z coordinate.

Method Details

Execute() public method

public Execute ( ExternalCommandData commandData, string &message, ElementSet elements ) : System.Result
commandData ExternalCommandData
message string
elements ElementSet
return System.Result

Flatten() public static method

Eliminate the Z coordinate.
public static Flatten ( List polygon ) : List
polygon List
return List

GetSignedPolygonArea() public static method

Use the formula area = sign * 0.5 * sum( xi * ( yi+1 - yi-1 ) ) to determine the winding direction (clockwise or counter) and area of a 2D polygon. Cf. also GetPolygonPlane.
public static GetSignedPolygonArea ( List p ) : double
p List
return double