Digi21.DigiNG.Topology
This NuGet package provides tools and utilities for topological analysis of geometries.
Package manager
Install-Package Digi21.DigiNG.Topology -Version 26.0.0
.NET CLI
dotnet add package Digi21.DigiNG.Topology --version 26.0.0
Package reference
<PackageReference Include="Digi21.DigiNG.Topology" Version="26.0.0" />
The package contains a reference assembly and depends on Digi21.DigiNG. Digi3D.AI installs the code in <carpeta de instalación>\Digi21.DigiNG.Topology\26.0.0\.
All types are in the Digi21.DigiNG.Topology namespace. Methods of DuplicityDetector, IntersectionDetector, NodeDetector and TopologyAnalyzer are extension methods for entity sequences: add using Digi21.DigiNG.Topology; to use them.
Algorithms work in the XY plane: two coordinates are equal if their X and Y are equal within the Precision.Epsilon tolerance. Z is ignored.
Types
| Type | Description |
|---|---|
| ClosedLoop | Closed ring formed by several lines: its polygon, centroid and constituent lines. |
| ClosedLoopWithHoles | Topology polygon with its holes. The result of TopologyAnalyzer.AnalyzeTopology. |
| DuplicityDetector | Detects duplicate entities: same type and same XY vertices. |
| IntersectionDetector | Detects intersections between lines. |
| NodeDetector | Groups line endpoints by coordinate (nodes). |
| TopologyAnalyzer | Forms polygons enclosed by lines and assigns centroids to them. |