Counts the number or regions formed by the boundaries.
Namespace:
ceometric.ComputationalGeometryAssembly: ceometric.ComputationalGeometry (in ceometric.ComputationalGeometry.dll) Version: 2.4.0.0 (2.4.0.0)
Syntax
C# |
---|
public static int CountBoundaryRegions( List<Edge> boundaries ) |
Visual Basic (Declaration) |
---|
Public Shared Function CountBoundaryRegions ( _ boundaries As List(Of Edge) _ ) As Integer |
Visual C++ |
---|
public: static int CountBoundaryRegions( List<Edge^>^ boundaries ) |
Parameters
- boundaries
- Type: System.Collections.Generic..::.List<(Of <(Edge>)>)
A list of edges defining closed boundary regions.
Return Value
Returns the number of closed regions formed by the boundaries.Remarks
This method throws if the edges contained in the boundary list do not form
ordered and closed regions. Ordered means that the end point of edge i must be the start
point of edge i+1. A closed region is formed if an end point falls on the start point
of a region.
Exceptions
Exception | Condition |
---|---|
System..::.InvalidOperationException | At least three boundary edges must be defined. |
System..::.Exception | A boundary region contains less than three edges. |
System..::.Exception | Boundaries do not form valid regions. |