Counts the number or regions formed by the boundaries.Namespace: ceometric.ComputationalGeometry
Assembly: ceometric.ComputationalGeometry (in ceometric.ComputationalGeometry.dll) Version: 220.127.116.11 (18.104.22.168)
public static int CountBoundaryRegions( List<Edge> boundaries )
|Visual Basic (Declaration)|
Public Shared Function CountBoundaryRegions ( _ boundaries As List(Of Edge) _ ) As Integer
public: static int CountBoundaryRegions( List<Edge^>^ boundaries )
- Type: System.Collections.Generic..::.List<(Of <(Edge>)>)
A list of edges defining closed boundary regions.
Return ValueReturns the number of closed regions formed by the boundaries.
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.
|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.|