You are here: Start » AVL.NET » Invoke.FilterGridPoints
Select a subset of the given points that forms a grid.
| Namespace: | Avl | 
|---|---|
| Assembly: | AvlNet.dll | 
Syntax
C++
C#
public static void FilterGridPoints ( List<Avl.Point2D> inPoints, Optional<int> inMaxAttempts, Optional<int> inMaxOutlierCount, float inMinLength, Optional<float> inMaxLength, float inMaxLengthRatio, float inAngleRange, float inBaseAspectRatioRange, Optional<float> inBaseAspectRatio, Optional<float> inBaseShear, Optional<float> inBaseOrientation, List<Avl.Point2D> outPointGrid, Diagnostic<List<Avl.Segment2D>> diagValidSubgraph, Diagnostic<float> diagMaxLength )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]()  | inPoints | System.Collections.Generic.List<Avl.Point2D> | |||
![]()  | inMaxAttempts | Atl.Optional<int> | <1, INF> | Maximum number of attempts at finding the grid. Default value: atl::NIL. | |
![]()  | inMaxOutlierCount | Atl.Optional<int> | <0, INF> | Determines how many outlier points can be present to end the search. Default value: atl::NIL. | |
![]()  | inMinLength | float | <0.0f, INF> | 0.0f | Minimum length of a grid segment. Default value: 0.0f. | 
![]()  | inMaxLength | Atl.Optional<float> | <0.0f, INF> | 10.0f | Maximum length of a grid segment, if set to Auto it will be approximated. Default value: 10.0f. | 
![]()  | inMaxLengthRatio | float | <1.0f, 2.0f> | 1.3f | Maximum ratio of two consecutive segments in the grid. Default value: 1.3f. | 
![]()  | inAngleRange | float | <0.0f, 45.0f> | 16.0f | Maximum variation of angles between neighbouring grid segments in degrees. Default value: 16.0f. | 
![]()  | inBaseAspectRatioRange | float | <0.0f, 1.0f> | 0.3f | Maximum variation of the base aspect ratio (ignores if base aspect ratio is not given). Default value: 0.3f. | 
![]()  | inBaseAspectRatio | Atl.Optional<float> | <0.3f, 1.0f> | 1.0f | A reference aspect ratio of the grid. Default value: 1.0f. | 
![]()  | inBaseShear | Atl.Optional<float> | <0.0f, 60.0f> | 0.0f | A reference shear angle between grid directions that uses inMaxAngleRange as the maximum error range. Default value: 0.0f. | 
![]()  | inBaseOrientation | Atl.Optional<float> | <0.0f, 360.0f> | A reference orientation of one of the grids directions. Default value: atl::NIL. | |
![]()  | outPointGrid | System.Collections.Generic.List<Avl.Point2D> | Detected grid. | ||
![]()  | diagValidSubgraph | Avl.Diagnostic<System.Collections.Generic.List<Avl.Segment2D>> | Graph forming a valid grid. | ||
![]()  | diagMaxLength | Avl.Diagnostic<float> | Max length computed by the filter (applicable if inMaxLength is set to Auto). | 



