Start » Filter Reference » Path » Path Features » PathBoundingRectangle
Module: | FoundationBasic |
---|
Computes the smallest rectangle containing a path.
Name | Type | Description | |
---|---|---|---|
inPath | Path | Input path | |
inBoundingRectangleFeature | BoundingRectangleFeature | Determines what kind of bounding rectangle will be computed | |
inReferenceAngle | Real | The middle angle of the valid range of the output rectangle's angle | |
inRectangleOrientation | RectangleOrientation | Orientation of the output rectangle | |
outBoundingRectangle | Rectangle2D | The smallest bounding rectangle of the input path | |
outCenter | Point2D | Center of the bounding rectangle | |
outLongSide | Real | Length of the bounding rectangle long side | |
outShortSide | Real | Length of the bounding rectangle short side |
Description
The filter computes a rectangle with the smallest possible selected feature that contains all points of the given path. The angle of the resulting rectangle is then normalized as in the NormalizeRectangleOrientation filter.
Errors
This filter can throw an exception to report error. Read how to deal with errors in Error Handling.
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty path on input in PathBoundingRectangle. |
Complexity Level
This filter is available on Basic Complexity Level.
Filter Group
This filter is member of PathBoundingRectangle filter group.
See Also
- NormalizeRectangleOrientation – Changes orientation of the given rectangle according to parameters.