C# Class BuildingCoder.CmdSlabBoundaryArea

Inheritance: IExternalCommand
Afficher le fichier Open project: jeremytammik/the_building_coder_samples Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
Flatten ( List polygons ) : List>

Eliminate the Z coordinate.

Flatten ( XYZ point ) : UV

Eliminate the Z coordinate.

Method Details

Execute() public méthode

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

Flatten() public static méthode

Eliminate the Z coordinate.
public static Flatten ( List polygon ) : List
polygon List
Résultat List

GetSignedPolygonArea() public static méthode

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
Résultat double