Parameters
- point
- Point location. This will be projected into the spatial reference of the TIN dataset.
Return Value
A TinEdge.
| Exception | Description |
|---|---|
| System.ArgumentNullException | Point is null |
| ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run |
using statement or a finally block.If the input point is outside the TIN or empty, then null is returned.{
// "identify" the closest node, edge, triangle
using (var nearestNode = tinDataset.GetNearestNode(mapPoint))
{
// do something with the node
}
using (var nearestEdge = tinDataset.GetNearestEdge(mapPoint))
{
// do something with the edge
}
using (var triangleByPoint = tinDataset.GetTriangleByPoint(mapPoint))
{
// do something with the triangle
}
// get the set of natural neighbors
// (set of nodes that "mapPoint" would connect with to form triangles if it was added to the TIN)
IReadOnlyList<ArcGIS.Core.Data.Analyst3D.TinNode> naturalNeighbors = tinDataset.GetNaturalNeighbors(mapPoint);
// get the set of triangles whose circumscribed circle contains "mapPoint"
IReadOnlyList<ArcGIS.Core.Data.Analyst3D.TinTriangle> triangles = tinDataset.GetTriangleNeighborhood(mapPoint);
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)